From: Bruno Ribeiro da Silva on 15 Apr 2010 16:22 Hi, I'm having some trouble with my production server, that mailman stopped working apparently without any modification. I think everything at my postfix configuration is ok, but what I'm seeing is that virtual_alias_maps isn't working as expected. My setup consists in one virtual domain example.com and some "accounts" from this domain are lists, like samplelist(a)example.com According to postfix flow, if I send an e-mail to samplelist(a)example.com it will match the line hash:/var/lib/mailman/data/virtual-mailman in my virtual_alias_maps and returns samplelist, then it's expected to match samplelist at line alias_maps = hash:/var/lib/mailman/data/aliases and pipe the e-mail to "|/var/lib/mailman/mail/mailman post samplelist", but instead postfix is just sending the e-mail to maildrop with destination like one of my regular accounts, then maildrop is returning user unknown, of course because samplelist(a)example.com isn't a valid user account. I don't know why postfix isn't matching alias_maps to pipe the mail to mailman. Someone could help me? Thanks! My /var/lib/mailman/data/virtual-mailman: # STANZA START: samplelist # CREATED: Mon Mar 31 16:59:34 2008 samplelist(a)example.com samplelist samplelist-admin(a)example.com samplelist-admin samplelist-bounces(a)example.com samplelist-bounces samplelist-confirm(a)example.com samplelist-confirm samplelist-join(a)example.com samplelist-join samplelist-leave(a)example.com samplelist-leave samplelist-owner(a)example.com samplelist-owner samplelist-request(a)example.com samplelist-request samplelist-subscribe(a)example.com samplelist-subscribe samplelist-unsubscribe(a)example.com samplelist-unsubscribe # STANZA END: reserva My /var/lib/mailman/data/aliases: # STANZA START: samplelist # CREATED: Mon Mar 31 16:59:34 2008 samplelist: "|/var/lib/mailman/mail/mailman post samplelist" samplelist-admin: "|/var/lib/mailman/mail/mailman admin samplelist" samplelist-bounces: "|/var/lib/mailman/mail/mailman bounces samplelist" samplelist-confirm: "|/var/lib/mailman/mail/mailman confirm samplelist" samplelist-join: "|/var/lib/mailman/mail/mailman join samplelist" samplelist-leave: "|/var/lib/mailman/mail/mailman leave samplelist" samplelist-owner: "|/var/lib/mailman/mail/mailman owner samplelist" samplelist-request: "|/var/lib/mailman/mail/mailman request samplelist" samplelist-subscribe: "|/var/lib/mailman/mail/mailman subscribe samplelist" samplelist-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe samplelist" # STANZA END: samplelist Let me show my postfix configuration: ### main.cf ### mydestination = example-srv.example.com myhostname = example-srv.example.com mydomain = example-srv.example.com myorigin = $myhostname mynetworks = 127.0.0.1 relay_domains = mysql:/etc/postfix/mysql/relay_domains.cf inet_protocols = ipv4 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 virtual_mailbox_domains = mysql:/etc/postfix/mysql/mailbox_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql/mailbox_maps.cf virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/alias_maps.cf, proxy:mysql:/etc/postfix/mysql/forwarding_maps.cf, proxy:mysql:/etc/postfix/mysql/list_maps.cf, hash:/var/lib/mailman/data/virtual-mailman, virtual_transport = maildrop maildrop_destination_recipient_limit=1 recipient_delimiter = + alias_maps = hash:/var/lib/mailman/data/aliases alias_database = hash:/var/lib/mailman/data/aliases local_recipient_maps = $alias_maps smtpd_helo_required = yes smtpd_delay_reject = yes disable_vrfy_command = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unknown_recipient_domain, reject_non_fqdn_recipient, reject_unauth_pipelining smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_unauth_pipelining smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_sender_login_mismatch, check_sender_access hash:/etc/postfix/blacklist reject_unauth_pipelining smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, check_sender_access hash:/etc/postfix/whitelist reject_unknown_client, reject_unauth_pipelining, check_policy_service inet:127.0.0.1:10031, reject_rbl_client bl.spamcop.net, reject_rbl_client cbl.abuseat.org, reject_rbl_client combined.njabl.org, reject_rbl_client dnsbl.sorbs.net, smtpd_sender_login_maps = mysql:/etc/postfix/mysql/sender_mailbox_maps.cf, mysql:/etc/postfix/mysql/sender_alias_maps.cf receive_override_options = no_address_mappings message_size_limit = 30000000 smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname broken_sasl_auth_clients = yes smtpd_soft_error_limit = 5 smtpd_error_sleep_time = 5s smtpd_discard_ehlo_keywords = silent-discard, dsn smtp_connect_timeout = 120s smtp_data_init_timeout = 240s smtp_data_xfer_timeout = 360s smtp_destination_concurrency_limit = 5 smtp_destination_recipient_limit = 10 smtpd_client_connection_count_limit = 25
From: Noel Jones on 15 Apr 2010 17:55 On 4/15/2010 3:22 PM, Bruno Ribeiro da Silva wrote: > Hi, I'm having some trouble with my production server, that mailman > stopped working apparently without any modification. I think > everything at my postfix configuration is ok, but what I'm seeing is > that virtual_alias_maps isn't working as expected. > My setup consists in one virtual domain example.com and some > "accounts" from this domain are lists, like samplelist(a)example.com > According to postfix flow, if I send an e-mail to > samplelist(a)example.com it will match the line > hash:/var/lib/mailman/data/virtual-mailman in my virtual_alias_maps > and returns samplelist, then it's expected to match samplelist at line > alias_maps = hash:/var/lib/mailman/data/aliases and pipe the e-mail to > "|/var/lib/mailman/mail/mailman post samplelist", but instead postfix > is just sending the e-mail to maildrop with destination like one of my > regular accounts, then maildrop is returning user unknown, of course > because samplelist(a)example.com isn't a valid user account. > I don't know why postfix isn't matching alias_maps to pipe the mail to mailman. > Someone could help me? > > Thanks! > > My /var/lib/mailman/data/virtual-mailman: > # STANZA START: samplelist > # CREATED: Mon Mar 31 16:59:34 2008 > samplelist(a)example.com samplelist > samplelist-admin(a)example.com samplelist-admin > samplelist-bounces(a)example.com samplelist-bounces > samplelist-confirm(a)example.com samplelist-confirm > samplelist-join(a)example.com samplelist-join > samplelist-leave(a)example.com samplelist-leave > samplelist-owner(a)example.com samplelist-owner > samplelist-request(a)example.com samplelist-request > samplelist-subscribe(a)example.com samplelist-subscribe > samplelist-unsubscribe(a)example.com samplelist-unsubscribe > # STANZA END: reserva The result addresses above should include a domain listed in mydestination. samplelist(a)example.com samplelist(a)localhost.example.com .... mydestination = localhost.example.com ... -- Noel Jones
|
Pages: 1 Prev: DKIM-milter only for outgoing Next: block specific IP addresses |