theantix
March 17th, 2005, 04:00 PM
I would like to use my Ubuntu server for sending mail in programs like Evolution or Thunderbird, but am baffled at how to do this securely. I've got the postfix-tls package installed, and I can check mail with imaps or pop3s using dovecot which works wonderfully. However, for sending mail I would like some brief instructions on how to accomplish this task using the Ubuntu tools as the server and desktop and never have my mail/passwords sent via cleartext and at the same time not running an open relay either.
What I did was uncomment the postfix-tls lines at the tail end of /etc/postfix/master.cf and it now looks like this.
# only used by postfix-tls
tlsmgr fifo - - n 300 1 tlsmgr
smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
I restarted postfix and according to nmap I now have both smtp and smtps ports open -- without those lines only smtp is open. I'm not sure what else I need to do on the server end, looking over the postfix docs and configuration files are not giving me any clues to additional configuration requirements.
So I try in both Evolution and Thunderbird and I cannot seem to convince them to let me send outgoing mail even to local users on the server. Thunderbird has configuration options on smtp for sending as "TLS" or "SSL", each gives me the same message of:
Sending of Message failed.
An Error occured sending mail: Unable to connect to SMTP server myservername. The server may be down or may be incorrectly configured. Please verify that your Mail/News account settings are correct and try again.
Evolution has seemingly fewer options and allows me to enable the generic worded "Server Requires Authentication", which allows me to change the type of authentication. No matter what I choose though, I get the same error message:
Error while performing operation.
Welcome response error: Unknown.
The fact that both supported clients cannot send mail securely in this way leads me to believe the problem likes with the postfix configuration. Does anyone have a clue to what I am missing in the postfix setup to get this working?
What I did was uncomment the postfix-tls lines at the tail end of /etc/postfix/master.cf and it now looks like this.
# only used by postfix-tls
tlsmgr fifo - - n 300 1 tlsmgr
smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
I restarted postfix and according to nmap I now have both smtp and smtps ports open -- without those lines only smtp is open. I'm not sure what else I need to do on the server end, looking over the postfix docs and configuration files are not giving me any clues to additional configuration requirements.
So I try in both Evolution and Thunderbird and I cannot seem to convince them to let me send outgoing mail even to local users on the server. Thunderbird has configuration options on smtp for sending as "TLS" or "SSL", each gives me the same message of:
Sending of Message failed.
An Error occured sending mail: Unable to connect to SMTP server myservername. The server may be down or may be incorrectly configured. Please verify that your Mail/News account settings are correct and try again.
Evolution has seemingly fewer options and allows me to enable the generic worded "Server Requires Authentication", which allows me to change the type of authentication. No matter what I choose though, I get the same error message:
Error while performing operation.
Welcome response error: Unknown.
The fact that both supported clients cannot send mail securely in this way leads me to believe the problem likes with the postfix configuration. Does anyone have a clue to what I am missing in the postfix setup to get this working?