Paul, I have a similar situation like Matt. I have users that may have 10-15 aliases, and then they forward the non-alias account to another location.
It almost makes me wonder if I shouldn't use the user_idnr in the deliver_to field and make policy to always use names. Would you expect there to be any negative effects by doing this? Now every alias would get sent to the local sendmail program, and then sent back again should there be a forward. Just seems a bit messy that way. In checking the code it looks like I would have to do some kind of recursive lookup, and that could get ugly. I guess a second thought would be if using all names, then you could use virtual_alias_maps in postfix based on the dbmail_aliases table. That would let postfix do most of the work and just one call to sendmail for the forward. -- David A. Niblett | email: [EMAIL PROTECTED] Network Administrator | Phone: (352) 334-3400 Gainesville Regional Utilities | Web: http://www.gru.net/ -----Original Message----- From: Paul J Stevens [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 3:24 AM To: Matt Salerno; DBMail mailinglist Subject: Re: [Dbmail] send mail to alias -> Real Account -> forward Matt, If I understand correctly you have: alias | deliver_to ------------+----------- abuse@ | 1 postmaster@ | 1 postmaster@ | msalerno@ try changing that to: abuse@ | postmaster@ Matt Salerno wrote: > On 6/10/05, Niblett, David A <[EMAIL PROTECTED]> wrote: > >>Why don't you just forward the non-alias account and leave all the >>aliases where they are. Example: >> >>[EMAIL PROTECTED] <- user's real Email account. >>[EMAIL PROTECTED] <- alias to [EMAIL PROTECTED] >>[EMAIL PROTECTED] <- alias to [EMAIL PROTECTED] >>[EMAIL PROTECTED] <- alias to a.com (sure it's insane). >> >>Now in dbmail_aliases >>INSERT INTO dbmail_aliases (alias, deliver_to) >>VALUES ('[EMAIL PROTECTED]', '[EMAIL PROTECTED]'); >> >>Now all Email that goes to [EMAIL PROTECTED] will be forwarded >>to [EMAIL PROTECTED] The aliases do their thing, and the actual delivery >>to the user mailbox does the forward. >> >>Of course now I'm going to have to go verify that this works, but I >>swear I tested it once and it worked. >> >>-- >>David >> > > > That's exactly what I am trying to do. It doesn't work for me. > > I send a mail to [EMAIL PROTECTED] > > abuse is an alias for the postmaster user account. > I have a forward on the postmaster account going to [EMAIL PROTECTED] > > E-mail sent to [EMAIL PROTECTED] will never reach [EMAIL PROTECTED] If I > send a message to [EMAIL PROTECTED], then it will get to > [EMAIL PROTECTED] _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org https://mailman.fastxs.nl/mailman/listinfo/dbmail > -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl _______________________________________________ Dbmail mailing list Dbmail@dbmail.org https://mailman.fastxs.nl/mailman/listinfo/dbmail