[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OBSD - imap server
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: OBSD - imap server
- From: Chris Cameron <chris_(_at_)_upnix_(_dot_)_com>
- Date: 03 Dec 2002 15:00:28 -0700
It's my understanding that all you need to do is have Procmail deliver
to directories based on who the email message is to. So;
To do this you need to use MAILER(`procmail'), mailertable and access
along with a procmail script.
-Remove- the domain(s) you wish to use from your local domain list
You can use sendmail -bt and '$=w' to check
# accept messages for example.com
# deliver messages via procmail script
In /etc/procmailrcs/example-com.rc :
# base directory for example.com users' maildirs
# sender address
# recipient address, strip domain part
RECIPIENT=`echo "$2" | sed 's/@example\.com$//`
# Remove dangerous characters in recipient's address
* RECIPIENT ? ^^[a-z0-9]+^^
Use virtusertable to make sendmail knows which addresses in example.com
@example.com error:nouser User unknown
That procmail script is untested. I looked into this a while back, but
decided to stick with system users for email accounts.
Isn't sendmail great?
On Tue, 2002-12-03 at 13:39, dreamwvr_(_at_)_dreamwvr_(_dot_)_com wrote:
> > I'm using Procmail to deliver mail to my users in Maildir format. So,
> > sendmail and Courier IMAP do infact get along with the help of a mailer
> > that delivers in Maildir.
> You know what? Your right. with procmail MDA. Let me put it this way.
> Then how might one deliver to vhost setups like large
> courier-imap /etc/userdb/domains.tlds ? Where there
> is a single real account that contains all vdomains above all
> vaccounts/Maildirs. That would be appreciated.
> Best Regards,
UpNIX Internet Administrator
Visit your host, monkey.org