1836636 Members
1955 Online
110102 Solutions
New Discussion

sendmail

 
Roberto Severo
Advisor

sendmail

Hi,

I'm a new user of sendmail and i'm facing the following problem:

On the machine called "astra", which is the mail server, when I try to send a mail using "mail xyz" I can get it just watching the file /var/mail/xyz getting bigger, but if i try to use "mail xyz@astra" i can receive the e-mail.

PS.: astra is configured on the files /etc/hosts, and /etc/mail/sendmail.cw

What could be wrong?

TKS.
3 REPLIES 3
Chris Vail
Honored Contributor

Re: sendmail

Is there an xyz user on that system? The system is doing exactly what it is supposed to do and deliver the mail to that user. If that user logs into the host, s/he can get the mail by using mailx or any of sever Mail User Agents.
If that user wants to bounce the mail out to an email server, then a .forward file has to be created in the users home dirctory. Go to the xyz users home directory, and type "echo xyz@astra>.forward". Then change the ownership of the file with "chown xyz .forward".

Next, send mail to that user. Sendmail will check the home directory, find the .forward file, and consequently deliver the mail to astra, for ultimate routing to the user.

Chris
Michael Steele_2
Honored Contributor

Re: sendmail

I agree with Chris but would prefer use of the /etc/mail/alias's file instead of .mailrc or .forward since they are subject to hijacking and a security problem.
Support Fatherhood - Stop Family Law
T G Manikandan
Honored Contributor

Re: sendmail

Just make an entry into /etc/mail/aliases

xyz : xyz@astra