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.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th October 2010, 21:04
aebbeeri aebbeeri is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix on mac (snow leopard) / php mail() won't work (Operation timed out…)

Hello everyone!

After hours and hours of research on this (it does appear to be quite an issue)... it still won't work.

I already tried with changes to main.cf, master.cf, php.ini, org.postfix.master...

For main.cf it was suggested to set "myhostname = host.domain.tld" to something one has control over, which I don't (so, I set it to the mailserver I use with my mailclient, but I clearly don't have any say there). Everything I tried telnetting to (e.g. telnet some-IP 25) refused to answer over port 25 (except localhost, which doesn't help much). They can be accessed via other ports (which I set accordingly in my mailclient but can't for postfix - as shows the mail.log)

I've also uncommented the line

"submission inet n - n - - smtpd"

In master.cf, which was meant to enable other ports (or another port) besides 25 - but in my mail.log file there are still entries like the following (I have edited the name of the mailserver):

Oct 11 14:56:06 my-MacBook-Pro postfix/qmgr[2123]: E8E0A46D8A7: from=<_www@host.domain.ch>, size=543, nrcpt=1 (queue active)
Oct 11 14:56:36 my-MacBook-Pro postfix/smtp[2168]: connect to mail.domain.ch[80.74.142.100]:25: Operation timed out

So, it does try to use port 25 and I can't figure out how to prevent (or rather change) that.

I also tried it with my local firewall switched off (just to make sure it wasn't that) - this didn't change anything.

Does anyone have any suggestions?
Following is my main.cf
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = _postfix
myhostname = host.domain.ch # edited
fallback_relay = host.domain.ch # edited
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = _postdrop
html_directory = /usr/share/doc/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix/examples
readme_directory = /usr/share/doc/postfix
dovecot_destination_recipient_limit = 1
mailbox_size_limit = 0
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
mydomain_fallback = localhost
message_size_limit = 10485760
biff = no
mynetworks = 127.0.0.0/8
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
recipient_delimiter = +
tls_random_source = dev:/dev/urandom


And here is the mail.log:
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 0034146BB27: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 0357B46D316: from=<_www@romulus.metanet.ch>, size=543, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 2367D46D8F3: from=<_www@romulus.metanet.ch>, size=543, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 25DC646C0CC: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 2D08046D084: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 380CB468328: from=<_www@my-MacBook-Pro.local>, size=1024, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 3D87246BE1D: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 4092446D0D5: from=<_www@smtp.mydomain.ch>, size=544, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 425C546D10B: from=<_www@smtp.mydomain.ch>, size=544, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 4D2FE46D4FB: from=<_www@romulus.metanet.ch>, size=543, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 5E45B46BDA1: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 5F20946BE63: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 69CB746D16A: from=<_www@romulus.metanet.ch>, size=542, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 78A9746BDF1: from=<>, size=2790, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 7EEF24681C7: from=<_www@my-MacBook-Pro.local>, size=1003, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 8156D46D0C3: from=<_www@smtp.mydomain.ch>, size=544, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 81B9346BDF5: from=<>, size=2788, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 83D3146BDF7: from=<>, size=2791, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 84B4A46BBC8: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 8594046BDF8: from=<>, size=2790, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: 85FA546D241: from=<_www@romulus.metanet.ch>, size=542, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: B3D5C46D48C: from=<_www@romulus.metanet.ch>, size=543, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: B3E2F46BC75: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: C96AD46BE3B: from=<_www@mail.recipients-domain.ch>, size=554, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: D99D646BAC0: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: E0D5A468502: from=<_www@my-MacBook-Pro.local>, size=1024, nrcpt=1 (queue active)
Oct 11 15:11:06 my-MacBook-Pro postfix/qmgr[2123]: E327946BD2F: from=<_www@my-MacBook-Pro.local>, size=568, nrcpt=1 (queue active)
Oct 11 15:11:36 my-MacBook-Pro postfix/smtp[2202]: connect to mail.recipients-domain.ch[80.74.142.100]:25: Operation timed out
Oct 11 15:11:36 my-MacBook-Pro postfix/smtp[2203]: connect to mail.recipients-domain.ch[80.74.142.100]:25: Operation timed out
Oct 11 15:11:36 my-MacBook-Pro postfix/smtp[2204]: connect to mail.recipients-domain.ch[80.74.142.100]:25: Operation timed out
Oct 11 15:11:36 my-MacBook-Pro postfix/smtp[2205]: connect to mail.recipients-domain.ch[80.74.142.100]:25: Operation timed out
Oct 11 15:11:36 my-MacBook-Pro postfix/smtp[2206]: connect to mail.recipients-domain.ch[80.74.142.100]:25: Operation timed out
Oct 11 15:11:36 my-MacBook-Pro postfix/smtp[2207]: connect to jay.hsz-t.ch[193.5.54.121]:25: Operation timed out
Oct 11 15:11:36 my-MacBook-Pro postfix/smtp[2209]: connect to jay.hsz-t.ch[193.5.54.121]:25: Operation timed out
Oct 11 15:11:37 my-MacBook-Pro postfix/smtp[2213]: connect to jay.hsz-t.ch[193.5.54.121]:25: Operation timed out
Oct 11 15:11:37 my-MacBook-Pro postfix/smtp[2208]: connect to barracuda.in2net.com[65.61.198.253]:25: Operation timed out
Oct 11 15:11:37 my-MacBook-Pro postfix/smtp[2212]: connect to barracuda.in2net.com[65.61.198.253]:25: Operation timed out
Oct 11 15:11:37 my-MacBook-Pro postfix/smtp[2210]: connect to barracuda.in2net.com[65.61.198.253]:25: Operation timed out
Oct 11 15:11:37 my-MacBook-Pro postfix/smtp[2211]: connect to barracuda.in2net.com[65.61.198.253]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2202]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2203]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2204]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2205]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2206]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2202]: 0034146BB27: to=<rnobel@recipients-domain.ch>, relay=none, delay=77166, delays=77106/0.06/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2203]: 0357B46D316: to=<rnobel@recipients-domain.ch>, relay=none, delay=46901, delays=46841/0.03/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2207]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2204]: 2367D46D8F3: to=<rnobel@recipients-domain.ch>, relay=none, delay=9419, delays=9359/0.03/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2205]: 25DC646C0CC: to=<rnobel@recipients-domain.ch>, relay=none, delay=69083, delays=69023/0.03/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2206]: 2D08046D084: to=<rnobel@recipients-domain.ch>, relay=none, delay=57881, delays=57821/0.03/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2207]: 380CB468328: to=<rnobel@hsz-t.ch>, relay=none, delay=220408, delays=220348/0.02/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 3D87246BE1D: to=<rnobel@recipients-domain.ch>, relay=none, delay=69826, delays=69766/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 4092446D0D5: to=<rnobel@recipients-domain.ch>, relay=none, delay=57542, delays=57482/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 425C546D10B: to=<rnobel@recipients-domain.ch>, relay=none, delay=57374, delays=57314/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 4D2FE46D4FB: to=<rnobel@recipients-domain.ch>, relay=none, delay=45191, delays=45131/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 5E45B46BDA1: to=<rnobel@recipients-domain.ch>, relay=none, delay=71715, delays=71654/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 69CB746D16A: to=<rnobel@recipients-domain.ch>, relay=none, delay=57113, delays=57053/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2222]: 5F20946BE63: to=<rnobel@recipients-domain.ch>, relay=none, delay=69372, delays=69311/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 8156D46D0C3: to=<rnobel@recipients-domain.ch>, relay=none, delay=57678, delays=57618/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2222]: 84B4A46BBC8: to=<rnobel@recipients-domain.ch>, relay=none, delay=75648, delays=75588/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: 85FA546D241: to=<rnobel@recipients-domain.ch>, relay=none, delay=50808, delays=50748/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2222]: B3D5C46D48C: to=<rnobel@recipients-domain.ch>, relay=none, delay=46259, delays=46199/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2222]: D99D646BAC0: to=<rnobel@recipients-domain.ch>, relay=none, delay=77430, delays=77370/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2222]: E327946BD2F: to=<rnobel@recipients-domain.ch>, relay=none, delay=72007, delays=71947/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2221]: B3E2F46BC75: to=<rnobel@recipients-domain.ch>, relay=none, delay=74076, delays=74016/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/error[2223]: C96AD46BE3B: to=<rnobel@recipients-domain.ch>, relay=none, delay=69567, delays=69507/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2209]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:06 my-MacBook-Pro postfix/smtp[2209]: 7EEF24681C7: to=<rnobel@hsz-t.ch>, relay=none, delay=220835, delays=220775/0.01/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)
Oct 11 15:12:07 my-MacBook-Pro postfix/smtp[2213]: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out
Oct 11 15:12:07 my-MacBook-Pro postfix/smtp[2213]: E0D5A468502: to=<rnobel@hsz-t.ch>, relay=none, delay=218862, delays=218802/0.03/60/0, dsn=4.4.1, status=deferred (connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)

Thank you very much for your time!!!

r.

Last edited by aebbeeri; 11th October 2010 at 21:10.
Reply With Quote
Sponsored Links
  #2  
Old 12th October 2010, 16:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

So you try to connect to remote mail servers on a different port (not 25)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th October 2010, 22:01
aebbeeri aebbeeri is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much for replying, Falko!

And, yes, I did try to use a different port (995 worked with all tested adresses), with telnet.
I read that uncommenting the line
"submission inet n - n - - smtpd"
in master.cf, would enable the use of different ports (other than 25)
and I also tried adding the line
"995 inet n - n - - smtpd"
in the same file. Neither did the trick.
The mail.log still reported rows and rows of failed attempts to get through port 25... like the following (with various servers but always the same port)
"Oct 12 21:35:11 my-MacBook-Pro postfix/error[5904]: B3D5C46D48C: to=<me[at]klik-info.ch>, relay=none, delay=155644, delays=155583/60/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to romulus.metanet.ch[80.74.138.2]:25: Operation timed out)".
Either I had done it wrong or something else is out of order.

Last edited by aebbeeri; 12th October 2010 at 22:06.
Reply With Quote
  #4  
Old 13th October 2010, 18:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Is this romulus.metanet.ch one of your servers where Postfix should run on port 995? BTW, port 995 is used for POP3S.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th October 2010, 18:33
aebbeeri aebbeeri is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Yes, it is. Thanks for the info about port 995! (I did find it -somewhere- in my mailclient-properties)
Reply With Quote
Reply

Bookmarks

Tags
php, port, postfix, smtp

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 Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 12:51
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
CGI and FormMail Cracklefish Installation/Configuration 17 13th October 2009 13:40
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06


All times are GMT +2. The time now is 05:22.


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