sendmail with mulitable domains and mulitable users
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
postfix??? with mulitable domains and mulitable users
I have cyrus and sendmail working beautifuly , BUTmy problem is when i have the confDOMAIN_NAME set as 4inthemorning.com and i send an email to bobsferrytales.com i get this
Aug 12 18:44:08 alpha lmtpunix[12869]: duplicate_mark: <0BA4FB9DAFA28D4B94361039C88E47CF863F73@whbmail.dunnpc.com> 4inthemorning.com!user.sern 1123886648 13
it sends to sern@4inthemorning.com instead of sern@bobsferrytales.com please does anyone have any ideas why this could be happening??? Please if you do can you let me know i want to make a tutorial of how to do it and thats the only thing i need to figure out
You probably need to look into Virtual User tables and multi-domain hosting. The virtusertable feature allows the server to accept mail for say joeblow@4inthemorning.com and then forward it to joeblow@bobsferrytales.com.
Mind you, this works only if joeblow doesn't exist in both domains.
Hey thanks for the reply. My problem is i need mail sent to each account sepertatly i don't want the mail to forward at all. So say if i have staff@4inthemorning.com and staff@bobsferrytales.com they are both 2 seperate email accounts not attached in anyway.
Hey Pete,
Thanks for replying but when i do that it sends to sern@alpha.4inthemorning.com , it sends to what ever domain is speicified in that config line
Code:
To: sern@4inthemorning.com
Subject: test
Sent: Mon, 15 Aug 2005 13:05:22 -0400
did not reach the following recipient(s):
sern@alpha.4inthemorning.com on Mon, 15 Aug 2005 13:04:53 -0400
The e-mail account does not exist at the organization this message
was sent to. Check the e-mail address, or contact the recipient
directly to find out the correct address.
< alpha.4inthemorning.com #5.1.1 SMTP; 550-Mailbox unknown. Either
there is no mailbox associated with this>
I think there's a local-host-name file that defines all the domains the server will serve. If the main.cf file already specifies 4inthemorning.com then you can add the second domain to the local-hostname file.
The synatx is just to put each domain the server will serve for on it's own line. Then restart sendmail and see if that helps.
You could leave the line "define(`confDOMAIN_NAME', ` alpha.4inthemorning.com')dnl" out of sendmail.mc and see if sendmail can determine it's own name from /etc/hosts, mine does
There is a way to change the senders email address by using a generics-domains table but try the above first
Just for your information my /etc/hosts file reads
Where
server2 is my machine name
mydomain.co.uk is obviously my domain name
127.0.0.1 and localhost.localdomain are necessary to stop other things complaining
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.