Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with virtual_alias_maps matching for virtual_mailbox_domains only

59 views
Skip to first unread message

kloet...@gmail.com

unread,
Sep 13, 2012, 10:10:10 AM9/13/12
to
Hi, I have let's say 3 virtual domains:
- virtual.org
- example.com
- testing.net

What I want is that all mails sent to i.e. webm...@virtual.org, webm...@example.com, webm...@testing.net go to mys...@testing.net.

I want the alias to match only the virtual domains.
With this configuration the regular expression matches all domains, not only the 3 virtual ones. So let's say I send a mail to webm...@humpadoo.com it is redirected to mys...@testing.net.

mail.log says:
postfix/pipe[3613]: 800A922008AE: to=<mys...@testing.net>, orig_to=<webm...@humpadoo.com>, relay=dovecot, delay=0.56, delay
s=0.39/0/0/0.17, dsn=2.0.0, status=sent (delivered via dovecot service)


my postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
maximal_backoff_time = 200s
message_size_limit = 20480000
minimal_backoff_time = 200s
mydestination =
myhostname = virtual.org
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
queue_run_delay = 200s
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rbl_client cbl.abuseat.org, reject_rbl_client sbl.spamhaus.org, reject_rbl_client pbl.spamhaus.org, check_client_access pcre:/etc/postfix/dspam_filter_access
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_recipient_limit = 4000
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit_mynetworks, reject_sender_login_mismatch
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/private/dovecot.pem
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf, regexp:/etc/postfix/aliases
virtual_gid_maps = static:5000
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000

/etc/postfix/aliases:
/^(mailer-daemon@.*)$/ mys...@testing.net
/^(postmaster@.*)$/ mys...@testing.net
/^(nobody@.*)$/ mys...@testing.net
/^(hostmaster@.*)$/ mys...@testing.net
/^(usenet@.*)$/ mys...@testing.net
/^(news@.*)$/ mys...@testing.net
/^(webmaster@.*)$/ mys...@testing.net
/^(www@.*)$/ mys...@testing.net
/^(ftp@.*)$/ mys...@testing.net
/^(abuse@.*)$/ mys...@testing.net
/^(noc@.*)$/ mys...@testing.net
/^(security@.*)/ mys...@testing.net
/^(root@.*)$/ mys...@testing.net

I know that I could handle each domain separately, and/or within the mysql database but i'd like to do this simply within the aliases file.
Referring to this link http://www.seaglass.com/postfix/faq.html#vrtglal it should work, but it doesn't... can anyone help me?

kloet...@gmail.com

unread,
Sep 20, 2012, 2:23:03 PM9/20/12
to
push

kloet...@gmail.com

unread,
Oct 7, 2012, 6:31:53 AM10/7/12
to
push

kloet...@gmail.com

unread,
Jan 3, 2013, 3:31:32 PM1/3/13
to
push
0 new messages