[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
basic sendmail configuration question
- To: OpenBSD misc ML <misc@openbsd.org>
- Subject: basic sendmail configuration question
- From: Eric Dillenseger <eric@naxalite.ath.cx>
- Date: Sun, 7 Sep 2003 20:18:26 +0200
- Content-Disposition: inline
- User-Agent: Mutt/1.5.4i
Hi,
I have a box that's used to act as lab. I make every tests on this one.
But I don't wan't to install postfix everytime I format the disk, so I
though about using sendmail. But I don't want the mail to stick on that
box so after some readings I modified
/usr/share/sendmail/cf/openbsd-localhost.mc like that:
divert(-1)
(...snip...)
divert(0)dnl
VERSIONID(`@(#)openbsd-localhost.mc $Revision: 1.4 $')
OSTYPE(openbsd)dnl
FEATURE(nouucp, `reject')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`no_default_msa')dnl
MASQUERADE_AS(`mydomain.name')
MAILER(local)dnl
MAILER(smtp)dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Family=inet6, address=::1, Name=MTA6, M=O')dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Port=587, Name=MSA,
M=E')dnl
DAEMON_OPTIONS(`Family=inet6, address=::1, Port=587, Name=MSA6, M=O,
M=E')dnl
CLIENT_OPTIONS(`Family=inet6, Address=::')dnl
CLIENT_OPTIONS(`Family=inet, Address=0.0.0.0')dnl
dnl
dnl Some broken nameservers will return SERVFAIL (a temporary failure)
dnl on T_AAAA (IPv6) lookups.
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl
define(`LOCAL_RELAY', `internal.smtp.server') #In fact I used IP address
define(`MAIL_HUB', `internal.smtp.server')
Then I issued a make in /usr/share/sendmail/cf and replaced
/etc/mail/localhost.cf with the new openbsd-localhost.cf.
After that I issued a HUP to sendmail' pid
But it doesn't work, when I do 'mail root', I got the following in the
log:
Sep 7 20:17:03 fool sendmail[914]: h87IH3mw000914: from=root, size=34,
class=0, nrcpts=1,
msgid=<200309071817.h87IH3mw000914@fool.naxalite.org>,
relay=root@localhost
Sep 7 20:17:03 fool sendmail[914]: h87IH3mw000914: to=root,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30024, relay=localhost.naxalite.org. [127.0.0.1], dsn=4.0.0,
stat=Deferred: Connection refused by localhost.naxalite.org.
Basically what I wanted to do was telling to sendmail that it must relay
all mails to my central smtp server.
Any hint?
--
> Enfin vivement les procs optique qui ne chaufferont pas trop ;-)
Vivement les proc quantiques, en rajoutant un glaçon, on pourra même
les boire ...
*----- Tous des alcolos ma parole! -----*
[demime 0.98d removed an attachment of type application/pgp-signature]