PHP mailing doesnt work

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?

Howdy,

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:

  1. Restart Postfix, and verify in the mail logs that no errors are generated

  2. 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

  3. 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 :slight_smile:

-Eric

I restarted and sended test mail, this is errors i get:

Jul 8 23:17:09 localhost postfix/postfix-script[26959]: warning: not owned by root: /var/spool/postfix Jul 8 23:17:09 localhost postfix/postfix-script[26975]: warning: not owned by root: /var/spool/postfix/usr Jul 8 23:17:09 localhost postfix/postfix-script[26976]: warning: not owned by root: /var/spool/postfix/usr/lib Jul 8 23:17:09 localhost postfix/postfix-script[26977]: warning: not owned by root: /var/spool/postfix/usr/lib/zoneinfo Jul 8 23:17:10 localhost postfix/postfix-script[26999]: starting the Postfix mail system Jul 8 23:17:10 localhost postfix/master[27000]: daemon started -- version 2.5.5, configuration /etc/postfix Jul 8 23:19:00 localhost postfix/pickup[27001]: 012995A370: uid=33 from= Jul 8 23:19:00 localhost postfix/cleanup[27098]: 012995A370: message-id=<64d7ce4fa7691f94b6ce7f64769498c8-p2414@****.org> Jul 8 23:19:00 localhost postfix/qmgr[27002]: 012995A370: from=, size=1295, nrcpt=1 (queue active) Jul 8 23:19:01 localhost postfix/smtp[27101]: 012995A370: to=, relay=mail.****.fi[62.237.50.28]: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[27002]: 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 :frowning: No errors anywhere and Postfix server is up. How do i debug this?

edit: fixed, changed to “Use domainname”.