Okan,
My .forward is empty right now, but thanks for trying to help.

Eric,
Thank you very much for the tip. I thought all of my conf files had taken
care of domain naming, but somehow my ISPs domain name was still slipping
through as shown when running smtpd -d -T smtp.

I thought supersede domain-name "foo.org" (in dhclient.conf) would have
addressed that, but obviously I still don't know very much about
configuring network stuff. Anyway, I turned some knobs and it works now
(I'll go back and see which knob worked later).

Back to my desktop, I get error 550. There's a squawk about permissions on
my .forward file (see below), but:
# ls -l ~/.forward:
-rw-r--r--  1 scott  users     0B May  8 18:36 .forward

My home dir is mounted as an NFS share of my home dir on the server. This
wouldn't mean anything though, would it?
# grep home /etc/fstab:
foo:/home /home nfs rw,nodev,nosuid 0 0


# smtpd -d -T smtp:
info: OpenSMTPD 5.3 starting
debug: bounce warning after 4h
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
info: startup [debug mode]
debug: init server-ssl tree
debug: init client-ssl tree
debug: enabling parent -> control
debug: enabling lka -> parent
debug: enabling mfa -> parent
debug: enabling scheduler -> control
debug: enabling parent -> lka
debug: enabling lka -> queue
debug: enabling mfa -> smtp
debug: enabling scheduler -> queue
debug: enabling parent -> mda
debug: enabling lka -> smtp
debug: enabling mfa -> control
debug: enabling parent -> mfa
debug: enabling lka -> mda
debug: disabling mfa -> smtp
debug: enabling parent -> mta
debug: enabling lka -> mta
debug: enabling parent -> smtp
debug: enabling lka -> control
debug: enabling parent -> queue
debug: disabling lka -> mda
debug: parent_send_config_ruleset: reloading
debug: disabling lka -> mta
debug: parent_send_config_mfa: reloading
debug: enabling mta -> parent
debug: disabling lka -> smtp
debug: parent_send_config: configuring smtp
debug: enabling queue -> parent
debug: mfa ready
debug: enabling mfa -> smtp
debug: enabling control -> scheduler
debug: enabling mda -> parent
debug: enabling smtp -> control
debug: enabling smtp -> parent
debug: enabling smtp -> lka
debug: enabling smtp -> mfa
debug: enabling lka -> mda
debug: enabling smtp -> queue
debug: enabling lka -> mta
debug: enabling lka -> smtp
debug: enabling mta -> queue
debug: smtp: listen on 127.0.0.1 port 25 flags 0x0 cert ""
debug: smtp: listen on IPv6:fe80::1%lo0 port 25 flags 0x0 cert ""
debug: smtp: listen on IPv6:::1 port 25 flags 0x0 cert ""
debug: smtp: will accept at most 501 clients
debug: enabling queue -> control
debug: enabling queue -> smtp
debug: enabling queue -> mda
debug: enabling queue -> mta
debug: enabling queue -> lka
debug: enabling queue -> scheduler
debug: enabling control -> queue
debug: queue: done loading queue into scheduler
debug: enabling mda -> queue
debug: enabling mda -> lka
debug: enabling mda -> control
debug: enabling control -> smtp
debug: enabling mta -> lka
debug: enabling control -> mfa
debug: enabling control -> parent
debug: enabling control -> lka
debug: enabling control -> mda
debug: enabling control -> mta
debug: enabling mta -> control
debug: smtpd: scanning offline queue...
debug: smtpd: enqueueing offline message
/var/spool/smtpd/offline/1368058424.j7H5iKKPTa
debug: smtpd: offline scanning done
debug: enabling control -> parent
debug: smtp: new client on listener: 0x3c013ae0
smtp: 0x7ed9f000: STATE_NEW -> STATE_CONNECTED
smtp-in: New session 000000008e9a3b98 from host 0@localhost [local]
smtp: 0x7ed9f000: >>> 220 foo.bar.org ESMTP OpenSMTPD
smtp: 0x7ed9f000: <<< EHLO localhost
smtp: 0x7ed9f000: STATE_CONNECTED -> STATE_HELO
smtp: 0x7ed9f000: >>> 250-foo.bar.org Hello localhost [local], pleased to
meet you
smtp: 0x7ed9f000: >>> 250-8BITMIME
smtp: 0x7ed9f000: >>> 250-ENHANCEDSTATUSCODES
smtp: 0x7ed9f000: >>> 250-SIZE 36700160
smtp: 0x7ed9f000: >>> 250 HELP
smtp: 0x7ed9f000: <<< MAIL FROM: <r...@foo.bar.org>
smtp: 0x7ed9f000: >>> 250 Ok
smtp: 0x7ed9f000: <<< RCPT TO: <r...@foo.bar.org>
warn: smtpd: parent_forward_open: /home/scott/.forward: Permission denied
smtp: 0x7ed9f000: >>> 550 Invalid recipient
smtp-in: Failed command on session 000000008e9a3b98: "RCPT TO: <
r...@foo.bar.org>" => 550 Invalid recipient
sendmail: command failed: 550 Invalid recipient

smtp-in: Received disconnect from session 000000008e9a3b98
debug: smtp: 0x7ed9f000: deleting session: disconnected
warn: smtpd: couldn't enqueue offline message
/var/spool/smtpd/offline/1368058424.j7H5iKKPTa; smtpctl exited abnormally


-Scott


On Tue, May 7, 2013 at 11:07 PM, Eric Faurot <e...@faurot.net> wrote:

> On Tue, May 07, 2013 at 05:23:35PM -0700, Scott wrote:
> > Greetings all,
> >
> > I was excited to try out smtpd because of future plans to go away from
> > webmail. Right after installing 5.3 I followed the directions in man
> smtpd
> > to make the switch. smtpd.conf is untouched, but here are the values
> anyway:
> >
> > listen on lo0
> > table aliases db:/etc/mail/aliases.db
> > accept for local alias <aliases> deliver to mbox
> > accept for any relay
> >
> > However, sending a test mail to myself yields two different errors. On my
> > server:
> > # echo 'test' | mail -s TEST scott
> > send-mail: command failed: 553 Sender address syntax error
> >
> > on my desktop:
> > # echo 'test' | mail -s TEST scott
> > send-mail: command failed: 550 Invalid recipient
> >
> > The same test works with sendmail enabled. What have I missed?
> >
> > -Scott
>
> I would bet it has something to do with the hostname.  Run the
> server with "smtpd -d -T smtp" and look at the addresses in the smtp
> transaction.
>
> Eric.

Reply via email to