---
title: Adding Mail Accounts in Firstsales.io - SMTP
slug: adding-mail-accounts-in-firstsalesio-smtp
docTags: 
createdAt: 2024-12-01T17:14:11.140Z
---

## Overview

This comprehensive guide details how to set up and troubleshoot SMTP mail integration with Firstsales.io. SMTP configuration requires precise settings and thorough understanding of email server parameters.

## Prerequisites

- Email server credentials
- SMTP server details
- IMAP access credentials
- SSL/TLS certificates (if applicable)
- Administrative access to your email server

## Basic Configuration Steps

### 1. Initial Setup

1. Log in to Firstsales.io
2. Navigate to "Mail Accounts"
3. Click "Add New Mail Account"
4. Select "SMTP" option

### 2. SMTP Configuration Parameters

## Required Fields

```markdown
**SMTP Settings:**
- Email Address: Your full email address
- Password: SMTP authentication password
- SMTP Port: Server port number
- SMTP Host: Server hostname
- SSL/TLS: Toggle based on server requirements

**IMAP Settings:**
- IMAP Username: Usually your email address
- IMAP Password: Server authentication password
- IMAP Port: Default 993 (SSL) or 143 (non-SSL)
- IMAP Host: Server hostname
- SSL/TLS: Recommended for security
```

## Common SMTP Server Settings

### Gmail

```markdown
SMTP Host: smtp.gmail.com
SMTP Port: 587 (TLS) or 465 (SSL)
IMAP Host: imap.gmail.com
IMAP Port: 993
SSL Required: Yes
```

### Outlook/Office 365

```markdown
SMTP Host: smtp.office365.com
SMTP Port: 587
IMAP Host: outlook.office365.com
IMAP Port: 993
SSL Required: Yes
```

## Advanced Troubleshooting Guide

### 1. Connection Issues

## SMTP Connection Failures

1. Verify Server Settings&#x20;
   - Double-check hostname spelling
   - Confirm port numbers
   - Test with both SSL on/off
2. Authentication Errors&#x20;
   - Validate credentials
   - Check for special characters in password
   - Verify account permissions
3. Timeout Issues&#x20;
   - Check network connectivity
   - Verify firewall settings
   - Test server response time

### 2. SSL/TLS Problems

## Certificate Validation

1. SSL Handshake Failures&#x20;
   - Verify SSL certificate validity
   - Check certificate chain
   - Confirm SSL library version
2. Protocol Mismatches&#x20;
   - Try alternate ports (587/465)
   - Match encryption method with port
   - Verify TLS version compatibility

### 3. IMAP Synchronization

## Sync Failures

1. Authentication&#x20;
   - Verify separate IMAP credentials
   - Check IMAP-specific permissions
   - Test connection with telnet
2. Folder Access&#x20;
   - Check folder permissions
   - Verify path separators
   - Test with different folder structures

### 4. Common Error Codes

```markdown
**Error 535: Authentication failed**
- Check credentials
- Verify 2FA settings
- Check app-specific password requirements

**Error 554: Transaction failed**
- Check sending limits
- Verify IP reputation
- Review message content

**Error 421: Service not available**
- Check server status
- Verify connection limits
- Test alternate servers
```

## Best Practices

### Security

1. Always use SSL/TLS when available
2. Implement strong passwords
3. Regular credential rotation
4. Monitor authentication logs

### Performance

1. Connection Pooling&#x20;
   - Maintain optimal connection count
   - Implement retry mechanisms
   - Set appropriate timeouts
2. Rate Limiting&#x20;
   - Observe server limits
   - Implement sending queues
   - Monitor bounce rates

## Emergency Fixes

### Quick Solutions

1. Connection Reset&#x20;
   - Clear existing connections
   - Restart mail services
   - Reset connection pool
2. Authentication Recovery&#x20;
   - Generate new app passwords
   - Reset server credentials
   - Clear cached credentials
3. SSL Recovery&#x20;
   - Bypass SSL temporarily
   - Update SSL certificates
   - Reset SSL configuration

## Maintenance Checklist

### Daily Checks

- Monitor connection status
- Check error logs
- Verify message delivery

### Weekly Tasks

- Review authentication attempts
- Check SSL certificate validity
- Monitor sending patterns

### Monthly Maintenance

- Rotate credentials
- Update server configurations
- Review security policies

