On Wed, Aug 18, 2010 at 07:00:25PM +0200, Robert wrote:
Thanks. I'm trying to interpret that marc archive right. Was it that you
had your /etc/mailer.conf not updated to the opensmtpd binaries? Well anyhow
you made me look if my problem persists, so I tried it on a fairly recent
-current box (August 2nd) and I'm still seeing the fails that I had before.
Here is a session with opensmtpd:
----
# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 uranus.centroid.eu ESMTP OpenSMTPD
helo remote
250 uranus.centroid.eu Hello remote [IPv6:::1], pleased to meet you
mail from: <pjp@solarscale.de>
250 2.1.0 Sender ok
rcpt to: <security@solarscale.de>
530 5.0.0 Recipient rejected: security@solarscale.de
quit
221 2.0.0 uranus.centroid.eu Closing connection
Connection closed by foreign host.
----
Notice the 530 error, I'm unsure what this means but the log says:
Aug 18 19:31:13 caliban smtpd: (none): from=<pjp@solarscale.de>, relay=localhost.solarscale.de [IPv6:::1], stat=LocalError (530 5.0.0 Recipient rejected: security@solarscale.de)
So to show you my /etc/mailer.conf:
----
# $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
sendmail /usr/sbin/smtpctl
send-mail /usr/sbin/smtpctl
makemap /usr/libexec/smtpd/makemap
newaliases /usr/libexec/smtpd/makemap
----
Notice, makemap and newaliases point to the opensmtpd binaries.
Next I want to show you my aliases file from /etc/mail/aliases:
----
# more aliases
#
daemon: root
operator: root
bin: root
smmsp: root
popa3d: root
sshd: root
uucp: root
www: root
named: root
proxy: root
nobody: root
root: pjp
pjp: pjp@solarscale.de
security: root
#
----
And lastly I'd like to show you my config:
----
# $OpenBSD: smtpd.conf,v 1.1 2009/03/17 00:00:16 gilles Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
hostname "uranus.centroid.eu"
map "aliases" { source db "/etc/mail/aliases.db" }
listen on localhost
listen on vic0
accept for local deliver to mda "/usr/local/bin/procmail -f -"
# must be "from all" because "from local" is default
accept from all for domain "solarscale.de" deliver to mda "/usr/local/bin/procmail -f -"
accept from all for domain "centroid.eu" deliver to mda "/usr/local/bin/procmail -f -"
accept from all for domain "uranus.centroid.eu" deliver to mda "/usr/local/bin/procmail -f -"
accept from all for domain "goldflipper.net" deliver to mda "/usr/local/bin/procmail -f -"
accept for all relay via 127.0.0.1 port 9025
----
So anyhow if you can spot the error, I'd be grateful otherwise I assume what
I want from opensmtpd is still not working.
Regards,
-peter