Configure Mail Server

Setting Up a Mail Server

Osclass allows you to configure a mail server for sending emails. Some shared hosting providers have limited mail server capabilities, so it's recommended to check with your hosting provider for compatibility. If you have a dedicated server, you may need to install and configure mail server software such as Postfix and Courier.

Mail Server Configuration

Configuring Osclass to use a mail server is straightforward. The settings are located in the Mail Server section under General Settings.

Custom Mail Server

If you have your own mail server, enter the following details:

  • Hostname: Typically smtp.yourdomain.com, but it can also be an IP address or localhost.
  • Server Port: Depends on the protocol:
    • POP3 – Port 110
    • IMAP – Port 143
    • SMTP – Port 25
    • HTTP – Port 80
    • Secure SMTP (SSMTP) – Port 465
    • Secure IMAP (IMAP4-SSL) – Port 585
    • IMAP4 over SSL (IMAPS) – Port 993
    • Secure POP3 (SSL-POP) – Port 995
  • Username: Required only if your server needs authentication.
  • Password: Required if authentication is enabled.
  • Encryption: Options: ssl, tls, or leave blank.
  • SMTP Authentication: Check this option only if your server requires authentication.

Google Mail Server

If you use a Google Mail account (e.g., john.doe@gmail.com), enter the following details:

  • Hostname: smtp.gmail.com
  • Server Port: 465
  • Username: Your Google username (e.g., john.doe)
  • Password: Your Google account password
  • Encryption: ssl
  • SMTP Authentication: Check this option

Note: Some hosting providers may not support SMTP Authentication. Try enabling or disabling this option if you encounter issues.

Troubleshooting Common Issues

Not Receiving Emails

Check your mail server configuration in Osclass. Ensure there are no typos in the details. If everything is correct, verify that your mail server is operational by checking the mail server logs or contacting your hosting provider.

Emails Suddenly Stopped

Your mail server may have stopped running, or your emails might be flagged as spam. Check the server logs for any errors. If emails are marked as spam, it could be due to sending too many emails in a short period.

Admin Email & Site Contact Email Use a Different Domain

After migrating a site to a new domain, ensure the contact email and admin email match the domain of the configured mail server. If they do not match, the mail server may reject emails due to a domain mismatch.

Example: If you migrate from domain1.com to domain2.net but keep the contact email as info@domain1.com, and the SMTP server is configured for domain2.net, emails may fail due to appearing as spam attempts.

If you encounter further issues, consider reaching out to Osclass support forums for assistance.