Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am currently using a 3rd party for IMAP and SMTP. I want to move this "in house" but need to do so in stages. First, I need to move SMTP. Then after that is up and running for a while, we'll move IMAP over.
I've setup postfix/sasl/courier with a MySQL backend on an ubuntu server, created an SPF record for mydomain.com which includes the IP of this server in it, and things seem to be working well. I can send emails to other domains just fine. However, when an email is sent to one of the virtual domains listed in my domain map, I get the following error:
Quote:
NOQUEUE: reject: RCPT from fromdomain.com[5.5.5.5]: 550 <to@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<from@mydomain.com> to=<to@mydomain.com> proto=ESMTP helo=<smtp.inhouse.com>
I need the from@mydomain.com address to be listed in my mailbox mapping so that they can authenticate for SMTP (this works fine). However, since mydomain.com is also mapped as a virtual domain (even though to@mydomain.com is not listed in the mailbox mapping), it appears that postfix does not "fall back" to sending to whatever the MX record has for mydomain.com.
How can I tell postfix to send emails to *@mydomain.com to wherever the MX record for mydomain.com points to while still having mydomain.com mapped as a virtual domain?
I guess simply disabling everything except SMTP would work, but I'd much rather configure things so that I can still do incoming (in case I setup other domains on this server) but tell postfix that if the address is not specifically mapped, to send to the domain's MX record and not assume it stays locally.
Hope that makes sense.
Thanks in advance.
Last edited by Temujin_12; 10-06-2008 at 05:44 PM.
I don't quite follow what you want to happen when you send a message to "to", if that virtual mailbox doesn't exist.
I want to send email for mydomain.com while still having authentication (so I'm not an open relay). However, I do not want to receive email for mydomain.com. This, with the long-term goal of eventually also receiving email for this domain.
Does that make sense?
Last edited by Temujin_12; 10-06-2008 at 05:51 PM.
virtual_mailbox_domains (default: $virtual_mailbox_maps)
Postfix is final destination for the specified list of domains; mail is delivered via the $virtual_transport mail delivery transport. By default this is the Postfix virtual(8) delivery agent. The SMTP server validates recipient addresses with $virtual_mailbox_maps and rejects mail for non-existent recipients. See also the virtual mailbox domain class in the ADDRESS_CLASS_README file.
This parameter expects the same syntax as the mydestination configuration parameter.
This feature is available in Postfix 2.0 and later. The default value is backwards compatible with Postfix version 1.1.
My interpretation of this (and I could well be wrong) is that since you don't define virtual_mailbox_domains, that the domains in virtual_mailbox_maps will be taken up. Perhaps pointing virtual_mailbox_domains to an empty list will fix your problem,
My interpretation of this (and I could well be wrong) is that since you don't define virtual_mailbox_domains, that the domains in virtual_mailbox_maps will be taken up. Perhaps pointing virtual_mailbox_domains to an empty list will fix your problem,
That did the trick. I had a row in my MySQL DB for mydomain.com. Deleting it from that table still allows me to send mail from and or to mydomain.com (authenticating with my mailbox mapping) but no longer tries to "[deliver it] via the $virtual_transport mail delivery transport" (as per postfix docs).
Thanks billymayday! I'll have to read through the postfix docs more thoroughly in the future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.