LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-23-2008, 01:43 PM   #1
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
sendmail - 1 IP, 3 (sub)domains


Hello.

I have a sendmail server on IP xxx.xxx.xxx.xxx
and then I have pointed at this IP
domain1.org
domain2.org
something.domain2.org
Now if I understand this right, if I send a mail to user@domain1.org and another to user@domain2.org will be transfered to the same user, right?

What I want to specify, is that user somebody i.e. can get mail only through domain something.domain2.org but wont get mail sent to domain2.org or domain1.org. Is this possible?
 
Old 01-23-2008, 04:06 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can stop the user getting mail at one of the domains in /etc/mail/access. I have mine set up like this:
Code:
user@domain2.org  ERROR:550 Mailbox disabled for this username
You'll need to regenerate access.db with:
Code:
makemap -v hash /etc/mail/access < /etc/mail/access
 
Old 01-24-2008, 02:43 PM   #3
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Original Poster
Rep: Reputation: 37
Ok, how about aliases.
If you send to alias1@domain1.org it gets transfered to user1, but if you send it to alias1@domain2.org it gets transfered to user2.
If you know what I mean. Is this doable?
Can I input into aliases:
alias1@domain1.org user1
alias1@domain2.org user2


******Edit******
Found a great guide on multiple domain mail server:
http://articles.techrepublic.com.com...1-5033970.html
So it's fixed

Last edited by Tux-Slack; 01-24-2008 at 03:17 PM.
 
  


Reply



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
Sendmail with two domains lasantha Linux - Networking 3 11-02-2005 09:39 AM
sendmail with 2 domains dominant Linux - Networking 1 09-03-2005 05:00 AM
sendmail sub domains how to do??? mlu Linux - Networking 1 04-01-2005 04:55 AM
more domains with sendmail sqn Slackware 0 06-01-2003 04:00 PM
Two domains for sendmail jhildebrand Linux - Software 2 04-26-2003 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:25 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