OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: "append_at_myorigin" not working

From: mouss (usebsdfree.fr)
Date: Sat Mar 04 2006 - 06:56:37 CST


Joel CARNAT a écrit :
>
> I don't think it really is sendmail.

This one is from sendmail (see the: "sendmail[78]")

Mar 4 12:20:40 postfix sendmail[78]: k24BKee9000078: to=root,
ctladdr=ptijo (2000/100), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30029, relay=localhost.here.com. [127.0.0.1], dsn=2.0.0, stat=Sent
(Ok: queued as 682D123C62)

> On NetBSD, both postfix and sendmail are available by default.
> You can choose one or the other by setting some ENV variable.

which ENV variable?

1- edit /etc/mailer.conf so that mailx/mail/... etc use postfix instead
of Sendmail. Replace occurences o
        /usr/libexec/sendmail/sendmail
by
        /usr/libexec/postfix/sendmail
(or /usr/pkg/libexec/postfix/sendmail if using postfix from pkgsrc).

2- Your path will still contain /usr/sbin/sendmail, which the Sendmail
version. you may want to rename/delete it.

3- set sendmail=NO in your /etc/rc.conf (you probably already did this)

4- if you rebuild the system, you can set MKSENDMAIL=NO in your
/etc/mk.conf to avoid building sendmail (and also MKPOSTFIX=no if you
prefer to use postfix from pkgsrc).

> Using "telnet localhost smtp" show me the postfix banner.
> Plus, there is no sendmail process running.

it is run by mailx, which uses /etc/mailer.conf.