|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Alias to commands (Mailman virtual aliases)
From: Ben Finney (ben
benfinney.id.au)
Date: Fri Jul 15 2005 - 01:20:34 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 13-Jul-2005, Ben Finney wrote:
> I'm trying to configure Postfix and Mailman, cribbing from the
> elegant solution at <URL:http://listes.rezo.net/how.php>. I'm
> getting stuck on aliases, I think.
> [...]
>
> However, when I set the alias to the destination suggested in the
> above URL:
>
> =====
> /^([[:alnum:]_-]+)-(post)
lists\.whitetree\.org$/ mailman-$2+$1
> =====
>
> then try to set an alias in /etc/aliases for mailman-post to send it
> to a command:
>
> =====
> mailman-post: "|formail -I\"X-Post: $EXTENSION\" |mail bignose"
> =====
>
> this alias seems to be ignored completely, and the mail drops through
> to the fallback address for the domain. The "X-Post" header field is
> not added, so I assume the formail command is never run.
>
>
> How else can I diagnose this? Any clues as to why I'm not able to get
> an alias to deliver via a command?
I've trawled the archives and documents again to be sure, but all
other references I can see relate to external commands *failing*
because of insufficient privileges.
This is not what I'm seeing; the alias instead seems to be *ignored*,
even though the configuration has been reloaded after setting the
alias. Delivery bypasses the alias altogether, but only if it's an
external command.
I presume one reason nobody has responded could be that I gave the
output of a command other than 'postconf -n'. So here it is.
=====
$ /usr/sbin/postconf -n
alias_database = hash:/etc/aliases hash:$config_directory/aliases-mailman
alias_maps = hash:/etc/aliases hash:$config_directory/aliases-mailman
append_dot_mydomain = no
biff = no
body_checks = pcre:$config_directory/map-pcre/body_checks
canonical_maps = hash:$config_directory/canonical
config_directory = /etc/postfix
default_rbl_reply = $rbl_code Service unavailable; $rbl_class [$rbl_what] blocked using $rbl_domain{$rbl_reason?; $rbl_reason}. See <URL:http://www.benfinney.id.au/contact/nospam/>.
header_checks = pcre:$config_directory/map-pcre/header_checks
home_mailbox = Maildir/
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
masquerade_domains = !$myhostname $myorigin !lists.whitetree.org whitetree.org finney.id.au
masquerade_exceptions = root
mime_header_checks = regexp:$config_directory/map-regexp/mime_header_checks
mydestination = $myhostname localhost.$mydomain localhost.localdomain localhost protea.dmz.polar.local
myhostname = mail.benfinney.id.au
mynetworks = 127.0.0.0/8 192.168.0.0/24 192.168.1.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relay_domains = polar.local grunta.com mariah.net.au
relayhost =
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (GNU/Linux)
smtpd_data_restrictions = reject_unauth_pipelining permit
smtpd_error_sleep_time = 5
smtpd_hard_error_limit = 10
smtpd_helo_required = yes
smtpd_junk_command_limit = 5
smtpd_recipient_restrictions = reject_invalid_hostname reject_non_fqdn_hostname reject_non_fqdn_sender reject_non_fqdn_recipient reject_unknown_hostname reject_unknown_client reject_unknown_sender_domain reject_unknown_recipient_domain reject_unauth_pipelining permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_recipient_access regexp:$config_directory/map-regexp/recipient_checks check_helo_access regexp:$config_directory/map-regexp/helo_checks check_sender_access regexp:$config_directory/map-regexp/sender_checks check_client_access regexp:$config_directory/map-regexp/client_checks check_client_access cidr:$config_directory/map-cidr/client_addr_checks check_helo_mx_access cidr:$config_directory/map-cidr/mx_addr_checks check_sender_mx_access cidr:$config_directory/map-cidr/mx_addr_checks check_recipient_mx_access cidr:$config_directory/map-cidr/mx_addr_checks reject_rbl_client sbl-xbl.spamhaus.org. reject_rbl_client list.dsbl.org. reject_rbl_client bogusmx.rfc-ignorant.org. reject_rbl_client dsn.rfc-ignorant.org. permit
smtpd_soft_error_limit = 3
strict_rfc821_envelopes = yes
transport_maps = hash:$config_directory/transport
unknown_local_recipient_reject_code = 450
virtual_alias_maps = hash:$config_directory/virtual regexp:$config_directory/map-regexp/virtual-mailman
=====
--
\ "In general my children refuse to eat anything that hasn't |
`\ danced on television." -- Erma Bombeck |
_o__) |
Ben Finney <ben
benfinney.id.au>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iEYEARECAAYFAkLXVbEACgkQt6wuUb1BcUsBsQCeOuwKnZwacPaNvCyqDxT9TfgI
zbgAoL0I7mtqI+EQ3eAw5F5yYar64y09
=4yio
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]