cancel
Showing results for 
Search instead for 
Did you mean: 

Re: sendmail problem

 
SOLVED
Go to solution
Super Advisor

sendmail problem

I've question about sendmail. When use "sendmail -void root < /etc/host",
the root doesen't receviced the mail. But the mail received by informix user. I've no .forward in root home directory. Does anyone knows any configuration would caused this problem? Thanks
Hero
3 REPLIES 3
Honored Contributor
Solution

Re: sendmail problem

Hi,

check you aliases in the /etc/mail/aliases file.

Regards,
Robert-Jan
Honored Contributor

Re: sendmail problem


Hi,

your command
#sendmail -v root < /etc/hosts, looks fine to me.

You may want to capture verbose output and post here.

WK

Problem never ends, you must know how to fix it
Valued Contributor

Re: sendmail problem

Assuming that Sendmail has been correctly configured and is working
properly, perform the following steps to configure Sendmail to send
'root's' mail to a specific system:

1. Add the following entry to the '/etc/mail/aliases' file:

root : root, user@hostname.com

Note: This entry instructs the system to keep a copy on the local
host and also send the mail to the specified user, in this
case, user@hostname.com.

2. Execute the following command:

sendmail -bi


Note: If you desire, you can execute the '/usr/sbin/newaliases'
command instead of the 'sendmail -bi' command.


/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

3. Test your configuration by sending a message to 'root':

mailx root

4. Execute one of the following commands to check the mail queue:

mailq