On 2/2/2014 11:47 PM, Jason Woods wrote:
Hi Michael,

I did some tweaks on pfixtools I will have to have a look and check for you (I 
use it too.)

It's not the ideal method though and a milter is really the correct way to do 
SRS as the canonical filters, although giving almost desired effect, aren't 
ideal or intended for this. I'm eventually switching to srs-milter and will be 
improving it.

Can you provide the pfixtools options you are using, and contents if the 
pfix-no-srs? Also the full bounce log entry including the user it showed could 
prove useful.

Thanks

Jason

Thanks Jason,

Here is the information you requested (to continue using my original example to illustrate the problem - I will replace certain things with domains referenced in the original email to keep things consistent - anywhere I do this I will wrap "~" around it i.e. ~srsdomain.com~):

 * pfix-srsd usage (note: srsdomain.com is  in mydestination and the MX
   records for it point to the mail server in question)
     /etc/postfix/pfix-srsd -v -f -p /var/lib/postfix/pfix-srsd.pid -U
   postfix -G postfix ~srsdomain.com~ /etc/postfix/pfix-srs.secrets

 * Contents of the pfix-no-srs.cf file (it gets compiled to
   pfix-no-srs.cf.cdb):
   postmaster@~srsdomain.com~         12345

 * Log data with notes:

   *Data connection opened from my smtp relay*

   Feb  2 23:20:48 quimby0 postfix/smtpd[19228]: connect from
   homer.terabytemedia.com[74.206.115.225]
   Feb  2 23:20:49 quimby0 postfix/smtpd[19228]: 30D73403ED:
   client=homer.terabytemedia.com[74.206.115.225]
   Feb  2 23:20:49 quimby0 postfix/cleanup[19232]: 30D73403ED:
   message-id=<52ef3541.70...@terabytemedia.com>

   *RCPT TO gets rewritten properly - from what I can tell*

   Feb  2 23:20:49 quimby0 postfix/qmgr[19227]: 30D73403ED:
   from=<SRS0=GUdW=XI=terabytemedia.com=mikemc@~srsdomain.com~>,
   size=819, nrcpt=1 (queue active)
   Feb  2 23:20:49 quimby0 postfix/smtpd[19228]: disconnect from
   homer.terabytemedia.com[74.206.115.225]

   *Delivery attempt to gmail.com fails resulting in a bounce generated
   by postfix*

   Feb  2 23:20:52 quimby0 postfix/smtp[19233]: 30D73403ED:
   to=<~badaddr...@gmail.com~>, orig_to=<~us...@forwardingdomain.com~>,
   relay=gmail-smtp-in.l.google.com[173.194.68.26]:25, delay=3.7,
   delays=0.25/0.01/0.4/3, dsn=5.1.1, status=bounced (host
   gmail-smtp-in.l.google.com[173.194.68.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
   http://support.google.com/mail/bin/answer.py?answer=6596
   b79si14074112qge.129 - gsmtp (in reply to RCPT TO command))
   Feb  2 23:20:52 quimby0 postfix/cleanup[19232]: CC0CB40402:
   message-id=<20140203062052.CC0CB40402@~mx1.srsdomain.com~>
   Feb  2 23:20:52 quimby0 postfix/qmgr[19227]: CC0CB40402: from=<>,
   size=3461, nrcpt=1 (queue active)
   Feb  2 23:20:52 quimby0 postfix/bounce[19234]: 30D73403ED: sender
   non-delivery notification: CC0CB40402
   Feb  2 23:20:52 quimby0 postfix/qmgr[19227]: 30D73403ED: removed

   *Postfix attempts a local delivery to
   SRS0=GUdW=XI=terabytemedia.com=mikemc@~srsdomain.com~ (resulting in
   unknown user error) instead of rewriting
   SRS0=GUdW=XI=terabytemedia.com=mikemc@~srsdomain.com~ to my email
   and sending the bounce to a remote host*

   Feb  2 23:20:52 quimby0 postfix/local[19235]: CC0CB40402:
   to=<SRS0=GUdW=XI=terabytemedia.com=mikemc@~srsdomain.com~>,
   relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=5.1.1,
   status=bounced (unknown user: "srs0=gudw=xi=terabytemedia.com=mikemc")
   Feb  2 23:20:52 quimby0 postfix/qmgr[19227]: CC0CB40402: removed

I am very appreciative of your help. Please let me know if any additional information is needed.

Michael


Reply via email to