Running sendmail Version 8.12.10+Sun on Solaris 9.
I need to send mail from this server (serverA) to the mail server (Mserver), which will relay the message to the correct user. If I specify the user specifically, as in:
mailx -s"test" John.Doe@company.com
test
.
It works perfectly and the message is delivered. But if I try to use an alias, sendmail never expands the alias and just tries to send the mail as the alias. For example, in /etc/mail/aliases I have an entry that says:
Check your access database (/etc/mail/access*) - you probably have to 'tell' sendmail you will accept mail from serverA. You can verify this by running the same command you posted and use harrypotter@notrealdomain.com as the rcpt (I doubt that is in your /etc/mail/access file since it isn't a real domain)
From some old notes I have, you would update the /etc/mail/access file, then run makemap hash /etc/mail/access < /etc/mail/access to build the /etc/mail/access.db. Then restart sendmail. This would be done on your Mserver.
I dont have access to the mail relay server. But I do know that it accepts email from my server (serverA), because if I send an email to a specific address, such as John.Doe@company.com, it works. The only problem is the aliases. My server doesnt honor aliases and instead tries to send to Mserver as root@company.com.
I think youre onto something. I thought that sendmail checks the /etc/mail/aliases file by default. Anyways I looked and it was commented out, so I uncommented it and saved the file. Then I ran newaliases and got this. I must have something misconfigured.
/etc/mail/aliases: line 11: MAILER-DAEMON... cannot alias non-local names
/etc/mail/aliases: line 12: postmaster... cannot alias non-local names
/etc/mail/aliases: line 13: nobody... cannot alias non-local names
/etc/mail/aliases: line 15: root... cannot alias non-local names
/etc/mail/aliases: line 17: some-admins... cannot alias non-local names
/etc/mail/aliases: 0 aliases, longest 0 bytes, 0 bytes total
I was reading up on sunsolve and found that I cannot use aliases unless I am running the sendmail daemon. I neglected to mention earlier on in the thread that I was not running the daemon, which probably would have tipped you guys off. My apologies for that. Here's a link to the Sunsolve article