Saturday, October 3, 2009
Episode 21: Sendmail /etc/mail/virtusertable Setup?
File: /etc/mail/virtusertable
finance@intinfra.com finance
#cd /etc/mail
#makemap hash virtusertable.db < virtusertable #service sendmail restart File: /etc/mail/access
finance: azit,abhi,receiver
#newaliases
#service sendmail restart
Try out sending mail to finance@groupinfra.com
And Found mail to all the three Users:
[receiver@Innova ~]$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/receiver": 1 message 1 new
>N 1 sender@intinfra.co Sun Oct 4 03:34 16/650 "hi"
& t
Message 1:
From sender@intinfra.com Sun Oct 4 03:34:25 2009
Date: Sun, 4 Oct 2009 03:34:25 +0530
From: sender@intinfra.com
To: finance@intinfra.com
Subject: hi
hello
&
finance@intinfra.com finance
#cd /etc/mail
#makemap hash virtusertable.db < virtusertable #service sendmail restart File: /etc/mail/access
finance: azit,abhi,receiver
#newaliases
#service sendmail restart
Try out sending mail to finance@groupinfra.com
And Found mail to all the three Users:
[receiver@Innova ~]$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/receiver": 1 message 1 new
>N 1 sender@intinfra.co Sun Oct 4 03:34 16/650 "hi"
& t
Message 1:
From sender@intinfra.com Sun Oct 4 03:34:25 2009
Date: Sun, 4 Oct 2009 03:34:25 +0530
From: sender@intinfra.com
To: finance@intinfra.com
Subject: hi
hello
&
Episode 20: How can I redirect mail to a different port on my smarthost?
If a system administrator does not want to use the default port 25 for SMTP traffic to a smarthost, it can be redirected by inserting this line into the sendmail.mc file to change the port number:
define(`RELAY_MAILER_ARGS', `TPC $h XXXX')dnl
Replace XXXX with the desired port on the smarthost. The Sendmail service must be restarted after applying this change. Restart the service with:
service sendmail restart
Note: If for any reason, a restart of the mail server has to be avoided, the sendmail service can be reloaded instead by issuing the command:
service sendmail reload
define(`RELAY_MAILER_ARGS', `TPC $h XXXX')dnl
Replace XXXX with the desired port on the smarthost. The Sendmail service must be restarted after applying this change. Restart the service with:
service sendmail restart
Note: If for any reason, a restart of the mail server has to be avoided, the sendmail service can be reloaded instead by issuing the command:
service sendmail reload
Subscribe to:
Posts (Atom)