Re: Configuring sendmail to deliver per sender
On 2003-02-18 17:03, Steven Lake <[EMAIL PROTECTED]> wrote: > Hi all. How do I get sendmail to forward off mail coming from a > particular sender to a particular email address? So regardless of who > it's addressed TO, I want it to forward mail to a different mailbox or to > /dev/null depending on the address. > > So say I get an email going from "[EMAIL PROTECTED]" going to > "[EMAIL PROTECTED]", I want that email to go to > "[EMAIL PROTECTED]" instead, but all other mail labled for user1 I > want it to deliver normally. One way to do this is to install procmail as a local delivery agent, and write something like the following in your system-wide rules at /usr/local/etc/procmailrc: :0 * ^(From|From:|Sender:) .*[EMAIL PROTECTED] * ^TO.*[EMAIL PROTECTED] ! [EMAIL PROTECTED] Done :) > The other situation would be mail coming into from > "[EMAIL PROTECTED]" going to any user on my network. That's easy. Try reading /usr/share/sendmail/cf/README. Especially the part about access_db. Giorgos To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Configuring sendmail to deliver per sender
check out virtusertable, access and aliases. you might need the apropriate FEATURE in your M4 file for virtusertable to work. I also suggest installing Webmin for easy access and changes to these files. On Tuesday 18 February 2003 06:03 pm, Steven Lake wrote: > Hi all. How do I get sendmail to forward off mail coming from a > particular sender to a particular email address? So regardless of who > it's addressed TO, I want it to forward mail to a different mailbox or to > /dev/null depending on the address. > > So say I get an email going from "[EMAIL PROTECTED]" going to > "[EMAIL PROTECTED]", I want that email to go to "[EMAIL PROTECTED]" > instead, but all other mail labled for user1 I want it to deliver > normally. > > The other situation would be mail coming into from > "[EMAIL PROTECTED]" going to any user on my network. I want to > automatically forward that mail into /dev/null and make it go bye bye. > How do I go about doing that? Thanks. If I can't do that, I'll take the > first item instead. I've got a workaround for the second if it can't be > done. But I definately need to do the first one. Thanks for the info! > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Configuring sendmail to deliver per sender
Hi all. How do I get sendmail to forward off mail coming from a particular sender to a particular email address? So regardless of who it's addressed TO, I want it to forward mail to a different mailbox or to /dev/null depending on the address. So say I get an email going from "[EMAIL PROTECTED]" going to "[EMAIL PROTECTED]", I want that email to go to "[EMAIL PROTECTED]" instead, but all other mail labled for user1 I want it to deliver normally. The other situation would be mail coming into from "[EMAIL PROTECTED]" going to any user on my network. I want to automatically forward that mail into /dev/null and make it go bye bye. How do I go about doing that? Thanks. If I can't do that, I'll take the first item instead. I've got a workaround for the second if it can't be done. But I definately need to do the first one. Thanks for the info! To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message