Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th February 2013, 02:49
mroppolo mroppolo is offline
Junior Member
 
Join Date: Jan 2010
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
Default Difficulties switching to port 587 in Postfix

Hello all -

My ISP has started blocking port 25 and I am having difficulty adding port 587 to my postfix configuration. I have added the following:

1) TLS settings in /etc/postfix/main.cf
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_security_level = encrypt
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache_tls
tls_random_source=dev:/dev/urandom
2) SASL settings in /etc/postfix/main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
smtp_always_send_ehlo = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
3) relayhost settings in /etc/postfix/main.cf
relayhost = [smtp.comcast.net]:587
4) /etc/postfix/saslpasswd
[smtp.comcast.net]:587 <MyUser>:<MyPasswd>
5) I hashed /etc/postfix/saslpasswd with the following command:
postmap /etc/postfix/saslpasswd
6) I then executed the following commands:
postfix reload
/etc/init.d/postfix restart
7) I opened port 587 on my router

8) I added port 587 to my ISPConfig3 firewall

I still cannot send or receive emails, but I'm seeing this in my mail log:
postfix/smtp[4210]: 341721120004: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1039, delays=1039/0.04/0.01/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
Is anything in configuration incorrect ? Am I missing any steps ?

Thanks !
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 10:56
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
ftp authentication fails fooboo Installation/Configuration 34 26th March 2010 14:04
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57


All times are GMT +2. The time now is 23:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.