Wednesday, September 24, 2008

Use of /etc/mail/aliases

We will see how to use /etc/mail/aliases efefctively ?

First find domainname of the server.

# domainname
xyz.com

Now in this case domainname of the server is xyz.com.

1. Forwarding mail to mail account rather than user. Add following lines in /etc/mail/aliases

user1: user.surname@domainname.com

Now you can send mail to user1@xyz.com and mail will distributed to user.surname@domainname.com

2. If no users are in To: field then ignore it. Add following lines in /etc/mail/aliases

undisclosed-recipients: /dev/null

3. Add following lines in /etc/mail/aliases for support

support: support@domainname.com

4. Forwarding mails to group of people

4.1 Create group called wishlist and add in /etc/mail/aliases

wishlist: :include:/admin/etc/wishlist.mail

4.2 Create file whose content looks like

# more /admin/etc/wishlist.mail

user1@domainname.com
user2@domainname.com
user3@domainname.com

Now you can send mail to wishlist@xyz.com and mail will distributed to user1@domainname.com, user2@domainname.com ,user3@domainname.com

Now you can send mails and you will receive it on new mail id. If you use effectviely your administration and support will much easier.

No comments: