Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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've installed sendmail on centos and have configured it for virtual domains. Incoming mail works as it should but outgoing only goes out as the main domain.
I've searched the net for days and have tried countless things but all of them seem to not end up being what I am after. Most of it ends up being outgoing masquerading so that all email goes out one domain.
Can someone please let me know which options I should be looking at or a doc on the net which shows how I can assign a domain name to users so that when they send mail, the email will show their domain only.
You don't mention how users are going to be sending mail from your server, are they making use of a mail client? In which case they should be able to specify the mail address in the client, or are they actually logging in by ssh/telnet to the server to send mail?
You don't mention how users are going to be sending mail from your server, are they making use of a mail client? In which case they should be able to specify the mail address in the client, or are they actually logging in by ssh/telnet to the server to send mail?
I wasn't sure what to mention right off the bat but it's only the server owner who needs to send from multiple domains. Right now, that person is just using webmin/sendmail but might use a mail client later, perhaps with dovecot.
to set the outbound e-mail address used. If they are going to be doing any volume of mail though they would be much better getting some form of e-mail client sorted and using that instead of webmin/sendmail.
to set the outbound e-mail address used. If they are going to be doing any volume of mail though they would be much better getting some form of e-mail client sorted and using that instead of webmin/sendmail.
Ok, so the answer is really the sending client then and not something I need to set in sendmail.
Time to get dovecot working I guess.
Cool, I didn't even have to install dovecot. I only installed squirrelmail as a local domain, configured it and it's all good now.
Now when I send email out, the reply address does indeed show the proper name/domain to reply to.
However, that didn't change the primary behavior I was hoping to fix which is that the email is still being shown as coming from the main domain when sending. I need it to show as the actual domain which is sending it.
I'm sorry it's not directly related to your sendmail, but Postfix address rewriting is doing it (at least I think it does)
maybe sendmail has similar options.
I'm sorry it's not directly related to your sendmail, but Postfix address rewriting is doing it (at least I think it does)
maybe sendmail has similar options.
good luck
I don't have postfix installed on this server. Do you mean I need to install this in order to add what is needed?
When sending as a user from a certain domain on the same server, all email contains the headers of the server name itself and not the users domain.
So for example. Say the server's FQDN is mydomain1.com and one of the virtual domains is vdomain1.com.
When a user sends as user@vdomain1.com, the headers show up as follows on the receiving server.
Received: from user@vdomain1.com by (x.x.x.x:25) via mydomain1.com
(x.x.x.x:37089) with [remote.Com SMTP Server] id 1255614756.WH99
for receiver@remote.com; Mon, 6 Feb 2012 11:08:10 -0800
Received: from www.mywebmailgui.net (mydomain1.com [127.0.0.1])
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.