[Dovecot] Deliver, sendmail, virtual users, and catch-all addresses
I have spent a long time looking into this and can't find the answer I'm looking for, so I'm asking here. I'm cutting the example down to just the bare minimums. This is NOT my actual configuration, but is sufficient for asking this question:
How can I use dovecot's deliver LDA to deliver to virtual users, but then have unknown virtual users fall back to catch-all addresses defined by sendmail?
Background:
- sendmail is the MTA. I do not wish to change this.
- procmail is the default MDA.
- deliver is set up per the dovecot documentation as another MDA.
- mailertable is configured to send mydomain.com to dovecot:dovecot
- SQL backend for user/passwords
I have it working the way I want with the exception of catch-alls. I thought that it might work by adding @mydomain.com to virtusertable, but sendmail sees the "user not found" return from deliver as the MDA and bounces the mail to postmaster.
So what I'm trying to accomplish is this:
Mail from user@external.com to me@mydomain.com Deliver to me Mail from user@external.com to sales@mydomain.com (virtual) Deliver via deliver to sales@mydomain.com Mail from user@external.com to foobar@mydomain.com (invalid) Deliver to catchall - spam@otherdomain.com
Can someone point me in the right direction. RTFM is fine if you'll tell me what FM to R, because I've run out of ideas...
Thanks!
-- Eric Loyd
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 18 Dec 2007, Eric Loyd wrote:
thought that it might work by adding @mydomain.com to virtusertable, but sendmail sees the "user not found" return from deliver as the MDA and bounces the mail to postmaster.
Mail from user@external.com to foobar@mydomain.com (invalid) Deliver to catchall - spam@otherdomain.com
How did you set up the catch all? I thought you specify a virtuser entry like:
@mydomain.com spam
then have a "real" spam account to drop the mail to. You can alias "spam" or whatever.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHjyq2VJMDrex4hCIRAgtzAJ4h66NFVi5CuSdS+Vb+U4dsq3Z43gCfT46g DqJUjaxBloBXOcn1rnqLGTs= =meFP -----END PGP SIGNATURE-----
participants (2)
-
Eric Loyd
-
Steffen Kaiser