i have been a postfix user for several years and have decided i should learn to
use sendmail. making a very basic setup that has 1 virtual mailbox (i.e. a
mailbox for a user that does not have shell account on the mailserver) is giving
me grief and i have not been able to fix this issue after reading all the docs i
could find. i fully expect the answer is that i missed something trivial.

here is what i have tried:

- make sendmail listen on all interfaces by removing the
-C/etc/mail/localhost.cf from the rc.conf.local entry for starting sendmail;
done by pkill -x sendmail and restarting w/ appropriate options

- add the domain for which i want to accept mail to /etc/mail/local-host-names
like so

my-domain.net

and issue pkill -HUP sendmail

- add the same line to /etc/mail/relay-domains and pkill -HUP sendmail

- add a line to /etc/mail/virtusertable like so

[EMAIL PROTECTED]         my-domain-phantom

and issue makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable

at this point i would expect that i could send mail to [EMAIL PROTECTED] and
have it delivered. the sendmail logs dictate otherwise:

Dec 31 09:16:03 host1 sendmail[10395]: kBVFG3Ne010395: from=user1, size=50,
class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Dec 31 09:16:03 host1 sm-mta[12516]: kBVFG3cU012516: <[EMAIL PROTECTED]>...
User unknown
Dec 31 09:16:03 host1 sendmail[10395]: kBVFG3Ne010395: [EMAIL PROTECTED],
ctladdr=user1 (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30050, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, s
tat=User unknown
Dec 31 09:16:03 host1 sm-mta[12516]: kBVFG3cU012516:
from=<[EMAIL PROTECTED]>, size=50, class=0, nrcpts=0, proto=ESMTP,
daemon=MTA, relay=localhost [127.0.0.1]
Dec 31 09:16:03 host1 sendmail[10395]: kBVFG3Ne010395: kBVFG3Nf010395: DSN: User
unknown
Dec 31 09:16:03 host1 sm-mta[12516]: kBVFG3cW012516: from=<>, size=2057,
class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>,
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec 31 09:16:03 host1 sendmail[10395]: kBVFG3Nf010395: to=user1, delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=31074, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (kBVFG3cW012516 Message accepted f
or delivery)
Dec 31 09:16:03 host1 sm-mta[22258]: kBVFG3cW012516:
to=<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:00, mailer=local,
pri=32259, dsn=2.0.0, stat=Sent

where host1 is the machine that's running sendmail and user1 is a local user
with shell access.

the only other thing i can think of is that the TLD i'm using has a hyphen in
it, just as my sanitized one, my-domain.net, does. cluesticking appreciated.

cheers,
jake

Reply via email to