LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   "Sendmail-on-Solaris" question (https://www.linuxquestions.org/questions/solaris-opensolaris-20/sendmail-on-solaris-question-4175581853/)

algernon_z 06-09-2016 08:41 AM

"Sendmail-on-Solaris" question
 
Hello
I 've got a "Sendmail-on-Solaris" question.

I have set up a sendmail configuration to send email from a Solaris host via a Linux smarthost to the final destination.
Therefore I 've setup a sendmail submit.cf which indeed connects to the smarthost, but.... in the process the recipient name is rewritten to another RCPT name (which by the way is "root@solarismachine.domain.local").
But root@solarismachine.domain.local is the sender!

So, if I do test like
echo "Subject: sendmail test" | sendmail -v existing.user@domain1.com
The email is sent TO root@solarismachine.domain.local (which arrives at the smarthost).

What do I do to have the sendmail client accept the RCPT of the existing user?

The submit.mc looks like this:
Quote:

divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(allmasquerade)
FEATURE(masquerade_envelope)
FEATURE(`msp', `[179.21.122.89]')dnl
define(`SMART_HOST',`179.21.122.89')
MASQUERADE_AS(your.dom)


Hope to hear, tnx!.


All times are GMT -5. The time now is 12:07 AM.