[FreeBSD] Incoming mail configuration; catch-all e-mail account; virtusertable

Dan Bikle dan.bikle at gmail.com
Mon Aug 21 04:58:31 UTC 2006


Yes,

I used /usr/sbin/adduser to create an account named catchall.

And if I send e-mail to catchall at mydomain.com ,
the e-mail does appear in /var/mail/catchall

Does anyone out there know how to tinker with the configuration of
incoming mail on FreeBSD ??

-Dan



On 8/20/06, Greg Groth < ggroth at gregs-garage.com> wrote:
>
> Do you have a user on your system defined as "catchall"?  I don't think
> that you can mail directly to a file from virtusertable.  You might be
> able to do this if you define an alias for catchall in the aliases file,
> or you could add a user "catchall" set for /usr/bin/nologin.
>
> Best regards,
> Greg Groth
>
> Dan Bikle wrote:
> > People,
> >
> > I want to configure sendmail for incoming mail.
> >
> > I want to funnel all mail destined for a specific domain to a catchall
> > account.
> >
> > On my FreeBSD 5.3 box I looked in /etc/mail/
> >
> > I found this file:
> >
> > /etc/mail/virtusertable.sample
> >
> > and studied it.
> >
> > I made this file:
> >
> > /etc/mail/virtusertable
> >
> > I put 1 line in it:
> >
> > @mydomain.com   catchall
> >
> > I want ...
> > any mail sent to @ mydomain.com
> > to land here /var/mail/catchall
> >
> > I assume I am using the right syntax; true?
> >
> > Anyway, I bounced sendmail with the Makefile I
> > found in /etc/mail
> >
> > When I send mail to spam at mydomain.com
> > the mail just ends up in the dead.letter file
> > of the sender.
> >
> > When I send mail to a valid user, the mail
> > does get delivered to the right file in /var/mail/
> >
> > So, how do I setup a catchall mail account?
> >
> > I sense that I'm supposed to do this via
> > /etc/mail/virtusertable
> >
> > but maybe I'm putting in the wrong syntax or
> > I need to configure some other file.
> >
> > If you have any tips for me,
> > please send them to me.
> >
> > Thanks,
> > -Dan
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list