Operating System - HP-UX
1751794 Members
4935 Online
108781 Solutions
New Discussion юеВ

Re: configure masquerading on hpux 11.11 sendmail

 
SOLVED
Go to solution
itai weisman
Super Advisor

Re: configure masquerading on hpux 11.11 sendmail

Kasper - CE is not enabled....
itai weisman
Super Advisor

Re: configure masquerading on hpux 11.11 sendmail

after configuring userdb - things became worse - mail won't be sent out of our unix enviorment -
got stucked in the mail queue -
itaiwe1@ovosrv (root): mailq
Mail Queue (1 request)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
WAA28586 1 Mon Jul 3 22:27 itaiwe1
(Deferred: user database error)
itaiwe
itaiwe1@ovosrv (root):
itai weisman
Super Advisor

Re: configure masquerading on hpux 11.11 sendmail

another thing - since there is sendmail.mc file on HPUX - I can't find any document related to userdb that does not use sendmail.mc....
Kasper Haitsma
Trusted Contributor

Re: configure masquerading on hpux 11.11 sendmail

Hello Itai,

I know you are not a spammer, I did not want to imply you were, and I know that in Israel companies and agencies are protective of their identity, for obvious reasons.
What I want to make you aware of, is that receiving servers will most likely identify your email as spam, when the headers are modified, to hide the various servers that have handled the email message.

HTH

Kasper
It depends
itai weisman
Super Advisor

Re: configure masquerading on hpux 11.11 sendmail

it's ok Kasper :)
Fred Martin_1
Valued Contributor

Re: configure masquerading on hpux 11.11 sendmail

DNS is not required, I mentioned because we needed it, so that all three of our domain names resolve to the one address for the mail server.

Regarding userdb, the format for each user in the /etc/mail/userdb file is:

acl:mailnameclibby@applicat.com
clibby:maildropacl

In the example above, the unix login is acl. When acl sends an email, the from address becaomes clibby@applicat.com, due to the first line. The second line tells sendmail to deliver any mail for clibby, to the inbox for acl.

After you build that file, you need to run this command:

makemap btree /etc/mail/userdb.db < /etc/mail/userdb

In sendmail.cf you need this line:

O UserDatabaseSpec=/etc/mail/userdb.db

Make sure you start/stop sendmail each time you modify the userdb file.

fmartin@applicatorssales.com
itai weisman
Super Advisor

Re: configure masquerading on hpux 11.11 sendmail

well,
after making these changes, the 'from' field on the mail message appears as defined in userdb file,
but
when I look at the internet header -
Return-Path: root@ovosrv.pelephone.co.il
instead of:
root@pelephone.co.il...
(ovosrv is the origin host name, pelephone.co.il is the domain)
Fred Martin_1
Valued Contributor

Re: configure masquerading on hpux 11.11 sendmail

Yes, I mentioned in my 4th post above, I was afraid that would be the case.

I found something that might work, in this PDF file on the web:

http://media.wiley.com/product_data/excerpt/71/07821273/0782127371.pdf

Chapter 9 deals with m4 changes that might work. At the top of page 251 there is an example that appears to do what you want.

I didn't look into it too deeply though.
fmartin@applicatorssales.com
Kasper Haitsma
Trusted Contributor

Re: configure masquerading on hpux 11.11 sendmail

Itai,

do a:

grep ^CE /etc/mail/sendmail.cf

(the ^ means start of the line)
are you sure there is no line:

CEroot

in my sendmail.cf, in the preceeding section, it reads:

# class E: names that should be exposed as from this host, even if we masquerade

if you do not have the "CEroot" line, enter a line with just CE, so an empty class E, if you do have it, remove root.

HTH

Kasper
It depends
itai weisman
Super Advisor

Re: configure masquerading on hpux 11.11 sendmail

Hi Kasper,
I had no CE lines, I added an empty CE line
but it didn't help...
from internet header -
Return-Path: root@ovosrv.pelephone.co.il