LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-09-2008, 12:11 PM   #1
h725
Member
 
Registered: Apr 2008
Posts: 114

Rep: Reputation: 15
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
 
Old 06-09-2008, 11:13 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

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

http://www.postfix.org/DSN_README.html
 
Old 06-11-2008, 07:35 AM   #3
h725
Member
 
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
tnx!
I'll try immediately
 
Old 06-16-2008, 06:42 AM   #4
h725
Member
 
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
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
 
Old 06-16-2008, 11:32 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
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
 
Old 06-17-2008, 06:15 PM   #6
h725
Member
 
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
Ook, all is working, thanks
 
Old 09-11-2009, 09:49 AM   #7
franciscomiralha
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
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>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SLES 10 - Postfix mailer config - Return Path overwritten HuffmanT Linux - Enterprise 1 05-26-2008 10:12 PM
postfix error 450 - custom text return Leb_CRX Linux - Server 0 08-07-2007 12:43 PM
Postfix: why is 'Return-Path' of bounce message empty Chowroc Linux - Networking 1 12-28-2005 03:52 AM
Postfix Mailserver sticking localhost in after @ in return address hawkpaul Linux - Software 8 05-28-2003 11:24 AM


All times are GMT -5. The time now is 10:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration