Jacob Yocom-Piatt wrote:
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.

I think you need to have a local user to deliver to if you use this approach or sendmail would not know where to deliver. We create an account (with no ssh access etc) for each mail account.

If not, how is the user supposed to access his/her mail if there is no account?


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

Not needed.

- 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:

Seems fine except you'd need the 'my-domain-phantom' user account. I suppose you could write some wrapper and pipe the emails to it, but if you wish to keep it simple, I don't think that's the best idea.

/Alexander

Reply via email to