I have scripts what sends mail via php to users, like SMF forum. However, my server doesnt send any mails now. I use postfix mail server. How do i debug this issue?
The problem you were having with Postfix recently may be related to this, I’m not sure… the thing I’d start off with is:
Restart Postfix, and verify in the mail logs that no errors are generated
Try sending an email from your forum software… and when you do, check the mail logs to see if there’s any sign in there that it attempted to send an email
Verify in the Apache logs, $HOME/logs/error_log, that the forum software isn’t generating any errors
Whatever the problem is, it’s typically going to show itself in one of those 3 things above
I restarted and sended test mail, this is errors i get:
Jul 8 23:17:09 localhost postfix/postfix-script: warning: not owned by root: /var/spool/postfix Jul 8 23:17:09 localhost postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr Jul 8 23:17:09 localhost postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib Jul 8 23:17:09 localhost postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/zoneinfo Jul 8 23:17:10 localhost postfix/postfix-script: starting the Postfix mail system Jul 8 23:17:10 localhost postfix/master: daemon started -- version 2.5.5, configuration /etc/postfix Jul 8 23:19:00 localhost postfix/pickup: 012995A370: uid=33 from= Jul 8 23:19:00 localhost postfix/cleanup: 012995A370: message-id=<64d7ce4fa7691f94b6ce7f64769498c8-p2414@****.org> Jul 8 23:19:00 localhost postfix/qmgr: 012995A370: from=, size=1295, nrcpt=1 (queue active) Jul 8 23:19:01 localhost postfix/smtp: 012995A370: to=, relay=mail.****.fi[184.108.40.206]:25, delay=1.3, delays=0.23/0/0.74/0.34, dsn=2.0.0, status=sent (250 ok 1278623942 qp 20890) Jul 8 23:19:01 localhost postfix/qmgr: 012995A370: removed
This is fixed, dont ask how. It just started to work after i tested several things.
I dont get this. Same issue in another server. Logs say mail is sent, but nothing is delirived No errors anywhere and Postfix server is up. How do i debug this?
edit: fixed, changed to “Use domainname”.