PDA

View Full Version : mailbox names and sendmail


skennelly
18th April 2006, 05:18 PM
Hello,

I am currently running sendmail and hosting multiple website domains on the same server running fedora 4. I need to know how can I setup mailboxes for different domains, but with the same mailbox name?

example.

support@domain1.com
support@domain2.com
support@domain3.com

webmaster@domain1.com
webmaster@domain2.com
webmaster@domain3.com


Thanks,

Sarthan
18th April 2006, 06:02 PM
1. Create your users : for example : (/usr/sbin/adduser)

user1
user2
user3

2. Edit /etc/mail/virtusertable

support@domain1.com user1@domain1.com
support@domain2.com user2@domain2.com
support@domain3.com user3@domain3.com

3. Edit /etc/mail/genericstable

user1@domain1.com support@domain1.com
user2@domain2.com support@domain2.com
user3@domain3.com support@domain3.com

4. Add the domains to the /etc/mail/local-host-name file

domain1.com
domain2.com
domain3.com

5. Add the domains to the /etc/mail/genericsdomain file

domain1.com
domain2.com
domain3.com

6. Add the domains to the /etc/mail/relay-domains file

domain1.com
domain2.com
domain3.com

7. Restart sendmail

# /etc/rc.d/init.d/sendmail restart

That should be it.

skennelly
18th April 2006, 06:34 PM

Thanks, but your suggestion did not work for me. I did everything you recommended.

any other suggestions. Just to reiterate what I was trying to say in my original post.

I have multiple domains on a single server and each of those domains need to have an email address such as support@domain.com. But I've run into troubles using the same mailbox name for different receiving domains on the same machine.

thanks

Sarthan
18th April 2006, 07:32 PM
Did you get any errors ?

Verify if your /etc/mail/sendmail.mc contains these lines :

FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl

If you make changes to /etc/mail/sendmail.mc then you need to rebuild it :

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Then restart sendmail again.