Menu

#34 Need SMTP configuration file

v1.0_(example)
closed
None
2
2024-09-03
2024-06-10
Ssnatl
No

Hello Manvendra,

I need to perform the action on the below steps, But I am unable to find the configuration files like smtpd.conf etc

  1. Enable SMTPS: Look for the SMTP configuration file (usually named something like smtpd.conf). Inside this file, you'll typically find settings related to the SMTP server. Look for an option to enable SMTPS or SSL/TLS. It might be something like SMTPS_ENABLE=YES.

  2. Configure SSL: You'll need SSL certificates for SMTPS. If you don't have them already, you can generate self-signed certificates or obtain them from a certificate authority. Once you have the certificates, configure the paths to the certificate files in the SMTP configuration file. You'll typically have options like SMTPS_CERT_FILE and SMTPS_KEY_FILE to specify the paths to the certificate and private key files.

  3. Set Port: Ensure that the SMTPS port is set correctly. By default, SMTPS typically uses port 465. Look for an option like SMTPS_PORT in the configuration file and set it to 465.

So kindly help us finding these configuration on a linux machine.

Thanks and Regards
ssnatl

Discussion

  • Manvendra Bhangui

    indimail mostly doesn't have any configuration file.

    1. All configuration is through environment variables.
    2. All services are configured as directories in /service for Linux
    3. Each service name is the name of the directory in /service. e.g. /service/qmail-smtpd.25 is the standard SMTP service for port 25. Similary /service/qmail-smtpd.465 is the SMTP over TLS service for port 465 and /service/qmail-smtpd.587 is the standard SMTP submission port
    4. Every service is configured using environment variable. The environment variable for each service is configured as files in /service/name/variables. e.g. for SMTP port 25 the directory is /service/qmail-smtpd/25/variables
    5. The certificate location is configured using CERTDIR variable. So editing /service/qmail-smtpd.25/variables/CERTDIR will allow you to change the certificate location
    6. The default CERTIFICATE file used is servercert.pem. If you want to change the filename, you can set SERVERCERT environment variable in /service/qmail-smtpd.25/variables.

    If you are the lazy kind of system admin, then you can run svctool --print-variables --service-name=xxxx where xxxx is the name of a service. e.g. the below command will show you the entire configuration for SMTP service on port 25

    svctool --print-variables --service-name=qmail-smtpd.25
    

    It looks like you are using SMTP without reading the man page of qmail-smtpd. You can know everyting about configuring SMTP by doing

    $ man qmail-smtpd
    $ man svscan
    $ man supervise
    $ man envdir
    

    All man pages are located here

    https://github.com/indimail/indimail-mta/wiki/1-Man-Pages

     
  • Ssnatl

    Ssnatl - 2024-06-13

    Hello Manvendra,

    I need a help
    I do not wanted to use port 25 and I need to use secure connection through 465.
    Configure your mail server software to use Secure SMTP over TLS.
    So what are all the steps I need to follow.

    Note : Its already running in port 25
    If I change is done will it impact the external incoming emails?

    Because our MX record is pointed to our own mail serve.

     
    • Manvendra Bhangui

      indimail-mta gets configureed for 25, 465, 587 and ODMR port 366. All of them gets configured by creating environment variables in the variables directory for that service. So just configure qmail-smtpd for port 465.

      Just follow the wiki on how to do that https://github.com/indimail/indimail-mta/wiki/0-IndiMail-Wiki

       
  • Manvendra Bhangui

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB