[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virus alert "Have a funny Epiphany" ???



On Tue, 7 Jan 2003, Brian Candler wrote:

> If you can, it would be a good idea to configure the MTA on the system which
> runs majordomo to reject posting to a -outgoing address except by the
> majordomo process itself.
>
> I don't know how to do this in Postfix

Just add "pcre:/etc/postfix/pcre.cf" to smtpd_recipient_restrictions, and
then create a pcre.cf file as below:

# Protect your -outgoing majordomo aliases
/^(?!owner-)(.*)-outgoing at (.*)$/ 550 Use ${1} at ${2} instead

remember you must have pcre installed and postfix configured with support.

If you prefer regular expressions, then add "regexp:/etc/postfix/regexp.cf"
to smtpd_recipient_restrictions and then create a regexp.cf file as below:

# Protect your outgoing majordomo exploders
/^(.*)-outgoing at (.*)$/!/^owner-.*/      550 Use ${1} at ${2} instead


Joseph



-----
This is the afnog mailing list, managed by Majordomo 1.94.5

To send a message to this list, e-mail afnog at afnog.org
To send a request to majordomo, e-mail majordomo at afnog.org and put
your request in the body of the message (i.e use "help" for help)

This list is maintained by owner-afnog at afnog.org