First the bad news which is pretty obvious. If you have [EMAIL PROTECTED] and postfix accepting [EMAIL PROTECTED] then any mail to [EMAIL PROTECTED] will be delivered as well.
That being said, the only way I could find to deal with a similar situation is to modify the select query inside DBMail directly. You should be able to rewrite it just like the Postfix query. This does bring up a good point that I think Paul said he was working on for a new version. I'd love to see the main queries in a config file so they could be changed outside of the code. Something similar to the FreeRadius design. It's really nice in some situations to be able to alter the query. -- David A. Niblett | email: [EMAIL PROTECTED] Network Administrator | Phone: (352) 334-3400 Gainesville Regional Utilities | Web: http://www.gru.net/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Dirix Sent: Monday, October 23, 2006 10:15 AM To: DBMail mailinglist Subject: Re: [Dbmail] subdomains in the alias table Hi Paul, Thanks for your answer, > (caveat! untested, I don't use mysql_tables myself) > I use PostgreSQL, but that doensn't change much to th problem I'm experiencing, because most mails are delivered to dbmail-lmtp directly from a different server, which accepts both [EMAIL PROTECTED] and [EMAIL PROTECTED] DBMail on the other hand refuses. So with your setup below and a failing telnet session to dbmail-lmtp underneath. > > alias | deliver_to > ------------------------------------- > [EMAIL PROTECTED] | 2 > > then above query will resolve '[EMAIL PROTECTED]' to > '[EMAIL PROTECTED]' hercules ~# dbmail-users -a [EMAIL PROTECTED] -s @example.com,@.example.com Adding INBOX for new user [EMAIL PROTECTED] [EMAIL PROTECTED] Done [EMAIL PROTECTED]:x:10987:0:0.00:0.00:@example.com,@.example.com hercules ~# telnet localhost 24 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 hercules DBMail LMTP service ready to rock mail from:<[EMAIL PROTECTED]> 250 Sender <[EMAIL PROTECTED]> OK rcpt to:<[EMAIL PROTECTED]> 250 Recipient <[EMAIL PROTECTED]> OK rcpt to:<[EMAIL PROTECTED]> 550 Recipient <[EMAIL PROTECTED]> FAIL _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
