1 May 2002 16:44
Trying to figure out forwarding
Yanek Korff <yanek <at> cigital.com>
2002-05-01 14:44:30 GMT
2002-05-01 14:44:30 GMT
OS: FreeBSD 4.5-STABLE
Software:
courier-imap-1.3.12 IMAP (and POP3) server that provides access to Maildir
mail
maildrop-1.3.7 Replacement local mail delivery agent, similar to
procmail
postfix-1.1.5,1 An alternative to widely-used Sendmail
Mail from postfix is coming to maildrop through Postfix's pipe to maildrop
like so:
vmail unix - n n - 10 pipe
flags=R user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
I've got a mail system which handles virtual mailboxes for a variety of
domains. Not EVERYONE with valid addresses in these domains, however, has a
mailbox on this system. In some cases, the mail needs to go elsewhere.
So, I figured I need to create a /usr/local/etc/maildroprc and forward mail
for these individual users elsewhere. It looks like my maildroprc needs to
look something like this:
if (hasaddr("user <at> domain")) {
to "user <at> someotherdomain"
}
But that doesn't seem to be working. What am I doing wrong? What's the
correct syntax here? -- And is there an easier way? Seems like a lot of
lines for really, just an alias.
-Yanek.
(Continue reading)
RSS Feed