Garrett
New Pleskian
Hello,
I am trying to to configure the postfix bounce notification email, so that I am notified whenever Postfix is unable to deliver a message. Here's what I'm seeing in the mail log when one of my virtual hosts (testdomain.com) tries to send an email to a non-existent gmail account:
The message to gmail bounces, and then it looks like Postfix tries to send the non-delivery notification to "[email protected]". I have mail disabled for all of my virtual hosts; they do not accept incoming mail, and in any case no such email user ([email protected]) exists anyway. However, then the log seems to report that the message is successfully sent (delivered via plesk_virtual_service). So where is this message going? How can I find that message, or better yet, direct all those messages to an external email address of my choosing?
I've tried changing the bounce_notice_recipient in the Postfix config, but that had no affect. And as far as I can tell Postfix isn't using that value anyway, since it's set to "postmaster" by default.
---
OSCentOS Linux 7.1.1503 (Core)
Plesk version12.5.30 Update #56, last updated at Dec 21, 2016 12:25 AM
I am trying to to configure the postfix bounce notification email, so that I am notified whenever Postfix is unable to deliver a message. Here's what I'm seeing in the mail log when one of my virtual hosts (testdomain.com) tries to send an email to a non-existent gmail account:
Code:
Jan 11 17:11:57 dv4 journal: plesk sendmail[10964]: handlers_stderr: SKIP
Jan 11 17:11:57 dv4 journal: plesk sendmail[10964]: SKIP during call 'check-quota' handler
Jan 11 17:11:57 dv4 postfix/pickup[10234]: 675A087EF9: uid=10063 from=<[email protected]>
Jan 11 17:11:57 dv4 postfix/cleanup[10838]: 675A087EF9: message-id=<[email protected]>
Jan 11 17:11:57 dv4 postfix/qmgr[10235]: 675A087EF9: from=<[email protected]>, size=389, nrcpt=1 (queue active)
Jan 11 17:11:57 dv4 postfix/smtp[10237]: 675A087EF9: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[74.125.22.26]:25, delay=0.11, delays=0/0/0.08/0.03, dsn=5.1.1, status=bounced (host gmail-smtp-in.l.google.com[74.125.22.26] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 https://support.google.com/mail/?p=NoSuchUser q7si4734114qtb.60 - gsmtp (in reply to RCPT TO command))
Jan 11 17:11:57 dv4 postfix/cleanup[10838]: 83EDB87EFA: message-id=<[email protected]>
Jan 11 17:11:57 dv4 postfix/bounce[10970]: 675A087EF9: sender non-delivery notification: 83EDB87EFA
Jan 11 17:11:57 dv4 postfix/qmgr[10235]: 83EDB87EFA: from=<>, size=2856, nrcpt=1 (queue active)
Jan 11 17:11:57 dv4 postfix/qmgr[10235]: 675A087EF9: removed
Jan 11 17:11:57 dv4 postfix-local[10972]: postfix-local: from=MAILER-DAEMON, [email protected], dirname=/var/qmail/mailnames
Jan 11 17:11:57 dv4 postfix-local[10972]: Unable to get sender domain by sender mailname
Jan 11 17:11:57 dv4 postfix-local[10972]: cannot chdir to mailname dir testdomain: No such file or directory
Jan 11 17:11:57 dv4 postfix-local[10972]: Unknown user: [email protected]
Jan 11 17:11:57 dv4 postfix/pipe[10971]: 83EDB87EFA: to=<[email protected]>, relay=plesk_virtual, delay=0.02, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered via plesk_virtual service)
Jan 11 17:11:57 dv4 postfix/qmgr[10235]: 83EDB87EFA: removed
The message to gmail bounces, and then it looks like Postfix tries to send the non-delivery notification to "[email protected]". I have mail disabled for all of my virtual hosts; they do not accept incoming mail, and in any case no such email user ([email protected]) exists anyway. However, then the log seems to report that the message is successfully sent (delivered via plesk_virtual_service). So where is this message going? How can I find that message, or better yet, direct all those messages to an external email address of my choosing?
I've tried changing the bounce_notice_recipient in the Postfix config, but that had no affect. And as far as I can tell Postfix isn't using that value anyway, since it's set to "postmaster" by default.
---
OSCentOS Linux 7.1.1503 (Core)
Plesk version12.5.30 Update #56, last updated at Dec 21, 2016 12:25 AM
Last edited: