Hello all, I'm trying to build a system based on dbmail 1.2.2 and Postfix 2.0.16 where a user can have an email address that can have both local delivery and be forwarded to another address. A forward, but keep copies type setup.
After much brain gnashing, I decided that I was not going to be able to have Postfix do the aliasing/forwarding because from what I can tell you can't have an address)alias) that forwards AND has local delivery. Perhaps I'm missing something, I don't know. However, I was able to solve this problem by simply having dbmail do the forwarding by having multiple alias records for an address, one for the external address and one for the user id for local delivery into the db. However... The message that is being forwarded to the external address has a slight problem: the envelope sender of the forwarded message is being set to dbmail@<$hostname in postfix's main.cf> The result is that if the external address is bad, the message will not be bounced to the original sender. I found this relevant thread from last June... and I've tried the R flag as suggested (what the heck is that, BTW?), started and stopped Postfix, but it still uses the wrong envelope sender. any ideas on how to quickly solve this problem? How about adding the ability to use a straight SMTP session when forwarding to external address instead of piping through "sendmail"? Look at the outbound capabilities of SquirrelMail (sendmail or smtp) or Mailman (sendmail, SMTP or direct to Postfix) for examples. thanks for any info. Brian > Hello, > > Do you have flags=R in your master.cf entry for dbmail? > > > ---- Original Message ---- > From: Micah Stevens <dbmail@dbmail.org> > To: dbmail@dbmail.org > Subject: [Dbmail] forwarded bounces > Sent: Wed, 11 Jun 2003 22:30:01 -0700 > >> Hi, >> >> As I have many forwarded aliases to other domain in the table, I've been >> noticing that if a mail is forwarded through dbmail and gets rejected from >> the recipient's server, the mail gets bounced to postmaster at the dbmail >> domain. Ideally, the error notice should then get sent back to the original >> sender, but it's just getting dropped into my postmaster account. >> >> Is this behavior standard for mail forwarding or is it peculiar to dbmail? It >> seems wrong as the sender will never know that the mail was not recieved, but >> I wasn't sure if there was a technical hurdle for this happen or not. If I >> was using Postfix for forwarding, would it behave differently? >> >> My other thought was that there was something configured wrong, but I >> couldn't >> think of what to change. I'm running dbmail CVS as of a couple of months ago, >> with MySQL / Postfix. >> >> Thanks for any insight on this, >> -Micah