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 11th October 2010, 22: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 22:10.
Reply With Quote
Sponsored Links
 

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


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


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