[FreeBSD] Incoming mail configuration; catch-all e-mail account;
virtusertable
Dan Bikle
dan.bikle at gmail.com
Mon Aug 21 05:23:05 UTC 2006
Wow,
excellent advice.
I now have 2 lines in virtusertable
jnk at mydomain.com catchall
@mydoemain.com catchall
Inside of /etc/mail...
I then ran
make all
Then I ran
make restart
Now, anything sent to mydomain.com ,
lands in /var/mail/catchall
I'm happy.
Thanks!!
-Dan
On 8/20/06, Greg Groth <ggroth at gregs-garage.com> wrote:
> Dan Bikle wrote:
> > Yes,
> >
> > I used /usr/sbin/adduser to create an account named catchall.
> >
> > And if I send e-mail to catchall at mydomain.com
> > <mailto: 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
>
> Do you have any other addresses defined in virtusertable? I've run into
> problems in the past where a catchall address would not work if it was
> the only defined. So in my experience, you should have at least two
> addresses defined in virtusertable like so:
>
> someuser at somedomain.com someuser
> @somedomain.com catchall
>
> Also, did you rehash virtusertable after you added the entries? If not,
> cd into /etc/mail and run 'make all' and then 'make restart'. If you
> did all the above, and it's still not working, check /var/log/maillog
> for any indications as to what's going wrong.
>
> Best regards,
> Greg Groth
>
More information about the freebsd-questions
mailing list