LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix return receipt (https://www.linuxquestions.org/questions/linux-server-73/postfix-return-receipt-648065/)

h725 06-09-2008 12:11 PM

Postfix return receipt
 
hi,

Postfix can be configured to send confirm for every mail succesfully relayed?

Ex.

foo@domain.com connect to smtp.domain.com and send and email to foo@hotmail.com

foo@domain.com must receive a mail to confirm that his message is relayed to hotmail's mx.

thanks

Mr. C. 06-09-2008 11:13 PM

Postfix can be configured to send delivery status notifications (DSNs). See:

http://www.postfix.org/DSN_README.html

h725 06-11-2008 07:35 AM

tnx!
I'll try immediately :)

h725 06-16-2008 06:42 AM

Hi,

how can I test the DSN report?
Now I see this in EHLO transaction:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 darkstar SMTP Postfix
ehlo test.com
250-darkstar
250-PIPELINING
250-SIZE 50000000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
^^^^^^

I put this in main.cf:
smtpd_discard_ehlo_keyword_address_maps = cidr:/etc/postfix/esmtp_access

esmtp_access:
192.168.1.0/24 silent-discard
0.0.0.0/0 silent-discard, dsn
::0/0 silent-discard, dsn

but I don't receive any notice from outbound email.
I must check something client-side (Outlook, Thunderbird)?
Many thanks

Mr. C. 06-16-2008 11:32 PM

Send yourself some email with the sendmail compatibility program, with the -N option set to "success":

Code:

sendmail -N success you@example.com
Look in your logs for a line such as:

Code:

.... postfix/bounce[15336]: 0252E366385: sender delivery status notification: 11CEA3663CA
The delivery notification is sent to you with queue ID show (in the example, above, it is 11CEA3663CA). You will find a DNS sent to the email address from the bounce agent.

Configure the smtpd_discard_ehlo_keyword_address_maps *after* you get things working and you know what to look for.

MrC

h725 06-17-2008 06:15 PM

Ook, all is working, thanks :)

franciscomiralha 09-11-2009 09:49 AM

Postfix success delivery notification
 
Hi

I did same thing as above, but I'm not receiving the notifications of success delivery.

When I use
# sendmail -N success me@myemail.com

I do receive the notification, but, if I use some Outlook client, I do not receive the notification.

# telnet 188.188.188.188 25
Quote:

Trying 188.188.188.188...
Connected to mail.xxx.com.
Escape character is '^]'.
220 mail.xxx.com ESMTP MailServer.
ehlo localhost
250-mail.xxx.com
250-SIZE 20400000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
mail# cat maillog | grep 83687A10131
Quote:

Sep 11 11:38:33 mail postfix/pickup[13386]: 83687A10131: uid=0 from=<root>
Sep 11 11:38:33 mail postfix/cleanup[13398]: 83687A10131: message-id=<20090911143833.83687A10131@mail.xxx.com>
Sep 11 11:38:33 mail postfix/qmgr[13387]: 83687A10131: from=<root@mail.xxx.com>, size=320, nrcpt=1 (queue active)
Sep 11 11:38:35 mail postfix/smtp[13392]: 83687A10131: to=<me@gmail.com>, relay=gmail-smtp-in.l.google.com[72.14.247.114]:25, delay=5, delays=2.9/0/0.4/1.7, dsn=2.0.0, status=sent (250 2.0.0 OK 1252679916 20si3155915agd.24)
Sep 11 11:38:35 mail postfix/bounce[13430]: 83687A10131: sender delivery status notification: A7276A1015D
Sep 11 11:38:35 mail postfix/qmgr[13387]: 83687A10131: removed
Sep 11 11:38:38 mail postfix/cleanup[13398]: 53CA3A10168: message-id=<20090911143833.83687A10131@mail.xxx.com>


All times are GMT -5. The time now is 03:29 PM.