LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-12-2021, 11:14 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,638

Rep: Reputation: 183Reputation: 183
Configuring Sendmail for multiple domains


I have been hosting multiple domains for httpd on one server for several years. I now want to add email for several domains. I am using Sendmail. Web articles I've read have given me config information, e.g.:

/etc/mail/local-host-names
Code:
domain1.org
domain2.org
/etc/mail/virtusertable
Code:
sales@domain1.org   sales\\@domain1.org
sales@domain2.org   sales\\@domain2.org
/etc/mail/genericstable
Code:
sales\\@domain1.org   sales@domain1.org
sales\\@domain2.org   sales@domain2.org
One of the sites even shows an image of setting up an Outlook client with the user name sales@domain1.org, complete with password: http://www.ait.com/wp-content/upload...ft_outlook.png.

What is missing from all these how-to sites is how it authenticates the user and PW. Where are the "sales@domain1.org" user name and password stored? Not in /etc/passwd, right?
 
Old 11-15-2021, 09:37 AM   #2
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,638

Original Poster
Rep: Reputation: 183Reputation: 183
So, no LQ experts out there on this topic?
 
Old 11-15-2021, 04:31 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Quote:
What is missing from all these how-to sites is how it authenticates the user and PW. Where are the "sales@domain1.org" user name and password stored? Not in /etc/passwd, right?
sendmail will accept mail for the virtual domains and users configured in the appropriate files.
In order to authenticate virtual users you'll need to use the imap server.

Take a look here for a sendmail/dovecot setup.
 
Old 11-18-2021, 04:42 PM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,638

Original Poster
Rep: Reputation: 183Reputation: 183
Quote:
Originally Posted by bathory View Post
sendmail will accept mail for the virtual domains and users configured in the appropriate files.
In order to authenticate virtual users you'll need to use the imap server.

Take a look here for a sendmail/dovecot setup.
Thanks for that feedback. I have experience with the Dovecot IMAP server. It will be a week or so before I can experiment with setting this on on this server. I'll post result when I do that.
 
  


Reply

Tags
domains, multiple, sendmail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring my sendmail to only send to certain domains laredotornado Linux - General 5 08-25-2014 01:55 PM
Multiple emails accounts(with different from domains) on multiple domains on 1 server locoputo Linux - Server 0 04-12-2009 06:29 PM
Multiple domains in LDAP and 1 samba server for all domains, what to do? xnomad Linux - Server 1 11-14-2008 09:12 AM
Sub Domains & Multiple Domains (Apache) lugos Linux - Server 1 09-01-2006 10:22 PM
Configuring sendmail for multiple domains pikky2006 Linux - General 2 07-15-2006 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration