Double delivery for aliases

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Double delivery for aliases

Guy-749
Hi guys,

I've run into an interesting little dilemma. I noticed the problem
with an alias for an account that listed itself and another local
address for delivery. The account itself only gets one copy but the
other local address gets two copies. I even tried adding a third non
local account to the alias and that also only got one copy. I then
tried having the alias only delivery to the alternate local address
and it still went through twice.

For various reasons our old mail server is still MX for all of our
mail and it's then relaying mail to the new server for those
domains/users that have been migrated. Delivery direct to the new mail
server doesn't result in this problem. I'm not sure where to start
looking at the cause of this. Can anyone tell me what I'm doing wrong
or point me at the documentation that would explain what's going on
here.

Thanks for any help.
Guy

Old server log:
May  9 15:42:17 [postfix/smtpd] 93BAE20F195:
client=barracuda.aluminati.org[72.9.230.26]
May  9 15:42:17 [postfix/cleanup] 93BAE20F195:
message-id=<[hidden email]>
May  9 15:42:17 [postfix/qmgr] 93BAE20F195: from=<[hidden email]>,
size=2985, nrcpt=2 (queue active)
May  9 15:42:18 [postfix/smtp] 93BAE20F195: to=<[hidden email]>,
orig_to=<[hidden email]>,
relay=mink.aluminati.org[209.51.133.130], delay=1, status=sent (250
2.0.0 Ok: queued as 407FD118C352)
May  9 15:42:18 [postfix/smtp] 93BAE20F195:
to=<[hidden email]>,
relay=mink.aluminati.org[209.51.133.130], delay=1, status=sent (250
2.0.0 Ok: queued as 407FD118C352)
May  9 15:42:18 [postfix/qmgr] 93BAE20F195: removed

New server log:
May  9 15:42:11 mink postfix/smtpd[21711]: connect from localhost[127.0.0.1]
May  9 15:42:11 mink postfix/smtpd[21711]: lost connection after
CONNECT from localhost[127.0.0.1]
May  9 15:42:11 mink postfix/smtpd[21711]: disconnect from localhost[127.0.0.1]
May  9 15:42:16 mink dovecot: imap-login: Login:
user=<[hidden email]>, method=PLAIN, rip=216.180.224.42,
lip=209.51.133.130
May  9 15:42:18 mink postfix/smtpd[21711]: connect from
tg3.aluminati.org[65.254.41.154]
May  9 15:42:18 mink postfix/smtpd[21711]: 407FD118C352:
client=tg3.aluminati.org[65.254.41.154]
May  9 15:42:18 mink postfix/cleanup[22427]: 407FD118C352:
message-id=<[hidden email]>
May  9 15:42:18 mink postfix/qmgr[19655]: 407FD118C352:
from=<[hidden email]>, size=3186, nrcpt=3 (queue active)
May  9 15:42:18 mink postfix/smtpd[21711]: disconnect from
tg3.aluminati.org[65.254.41.154]
May  9 15:42:18 mink authdaemond: received userid lookup request:
[hidden email]
May  9 15:42:18 mink authdaemond: authmysql: trying this module
May  9 15:42:18 mink authdaemond: received userid lookup request:
[hidden email]
May  9 15:42:18 mink authdaemond: authmysql: trying this module
May  9 15:42:18 mink authdaemond: SQL query: SELECT
CONCAT(Username,'@',Domain), "", MD5Password, 1510, 1510, Maildir, "",
CONCAT((QuotaVal*2),'S'), "", "" FROM members WHERE
CONCAT(Username,'@',Domain) = "[hidden email]" AND (Status IN
('Active','Free'))
May  9 15:42:18 mink authdaemond: SQL query: SELECT
CONCAT(Username,'@',Domain), "", MD5Password, 1510, 1510, Maildir, "",
CONCAT((QuotaVal*2),'S'), "", "" FROM members WHERE
CONCAT(Username,'@',Domain) = "[hidden email]" AND (Status IN
('Active','Free'))
May  9 15:42:18 mink authdaemond: Authenticated: sysusername=<null>,
sysuserid=1510, sysgroupid=1510,
homedir=/virtual/store1/mail/g/gme_aluminati.net,
address=[hidden email], fullname=<null>, maildir=<null>,
quota=1677721600S, options=<null>
May  9 15:42:18 mink authdaemond: Authenticated: sysusername=<null>,
sysuserid=1510, sysgroupid=1510,
homedir=/virtual/store2/mail/m/minktest2_aluminati.net,
address=[hidden email], fullname=<null>, maildir=<null>,
quota=400000000S, options=<null>
May  9 15:42:18 mink postfix/pipe[21896]: 407FD118C352:
to=<[hidden email]>, relay=maildrop, delay=0.17,
delays=0.04/0/0/0.12, dsn=2.0.0, status=sent (delivered via maildrop
service)
May  9 15:42:18 mink authdaemond: received userid lookup request:
[hidden email]
May  9 15:42:18 mink authdaemond: authmysql: trying this module
May  9 15:42:18 mink authdaemond: SQL query: SELECT
CONCAT(Username,'@',Domain), "", MD5Password, 1510, 1510, Maildir, "",
CONCAT((QuotaVal*2),'S'), "", "" FROM members WHERE
CONCAT(Username,'@',Domain) = "[hidden email]" AND (Status IN
('Active','Free'))
May  9 15:42:18 mink authdaemond: Authenticated: sysusername=<null>,
sysuserid=1510, sysgroupid=1510,
homedir=/virtual/store1/mail/g/gme_aluminati.net,
address=[hidden email], fullname=<null>, maildir=<null>,
quota=1677721600S, options=<null>
May  9 15:42:18 mink postfix/pipe[22083]: 407FD118C352:
to=<[hidden email]>, relay=maildrop, delay=0.19,
delays=0.04/0/0/0.14, dsn=2.0.0, status=sent (delivered via maildrop
service)
May  9 15:42:18 mink postfix/pipe[21987]: 407FD118C352:
to=<[hidden email]>, orig_to=<[hidden email]>,
relay=maildrop, delay=0.2, delays=0.04/0.13/0/0.02, dsn=2.0.0,
status=sent (delivered via maildrop service)
May  9 15:42:18 mink postfix/qmgr[19655]: 407FD118C352: removed

Postfix version is mail_version = 2.5.1
# postconf -n
2bounce_notice_recipient = [hidden email]
address_verify_sender = [hidden email]
anvil_rate_time_unit = 60s
bounce_notice_recipient = [hidden email]
bounce_template_file = /etc/postfix/bounce.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
cyrus_sasl_config_path = /etc/postfix/sasl/
daemon_directory = /usr/lib/postfix
debug_peer_level = 1
debug_peer_list = 65.254.35.122, 216.180.224.42
default_destination_concurrency_limit = 30
delay_notice_recipient = [hidden email]
delay_warning_time = 0h
disable_vrfy_command = yes
error_notice_recipient = [hidden email]
fallback_transport = virtual
home_mailbox = Maildir/
html_directory = no
inet_interfaces = 209.51.133.130, 10.0.7.180, localhost
local_destination_concurrency_limit = 2
local_recipient_maps =
mail_name = Aluminati Network Group Mail Service
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 31240000
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = aluminati.net
myhostname = mink.aluminati.org
mynetworks = 127.0.0.0/8, 72.9.253.114, 207.210.68.98, 64.22.85.162,
64.22.101.58, 72.9.230.26, 91.186.26.25, 65.254.41.154
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
notify_classes = software
proxy_interfaces = 10.0.7.180, 209.51.133.130
proxy_read_maps = $local_recipient_maps $mydestination
$virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps
$virtual_mailbox_domains $relay_recipient_maps $relay_domains
$canonical_maps $sender_canonical_maps $recipient_canonical_maps
$relocated_maps $transport_maps $mynetworks
$virtual_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_connect_timeout = 30s
smtp_data_done_timeout = 900s
smtp_data_init_timeout = 180s
smtp_data_xfer_timeout = 300s
smtp_helo_timeout = 300s
smtp_mail_timeout = 300s
smtp_quit_timeout = 300s
smtp_rcpt_timeout = 300s
smtp_rset_timeout = 20s
smtpd_banner = $myhostname ESMTP
smtpd_client_connection_rate_limit = 200
smtpd_client_message_rate_limit = 200
smtpd_client_recipient_rate_limit = 0
smtpd_client_restrictions = permit_mynetworks   ,reject_rbl_client
sbl-xbl.spamhaus.org ,permit_sasl_authenticated      ,reject
smtpd_data_restrictions = reject_unauth_pipelining,     permit
smtpd_error_sleep_time = 1s
smtpd_hard_error_limit = 20
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,      reject_unauth_destination,
reject_invalid_hostname,        reject_non_fqdn_sender,
reject_unknown_sender_domain,   reject_rhsbl_sender
sbl-xbl.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_soft_error_limit = 10
smtpd_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtpd_tls_cert_file = /etc/ssl/certs/imapd.pem
smtpd_tls_key_file = /etc/ssl/private/imapd.pem
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql_transport_maps.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
proxy:mysql:/etc/postfix/mysql_virtual_catchall_maps.cf
virtual_gid_maps = static:1510
virtual_mailbox_base = /
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 104857600
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop
virtual_uid_maps = static:1510


--
Don't just do something...sit there!
Reply | Threaded
Open this post in threaded view
|

Re: Double delivery for aliases

mouss-2
Guy wrote:

> Hi guys,
>
> I've run into an interesting little dilemma. I noticed the problem
> with an alias for an account that listed itself and another local
> address for delivery. The account itself only gets one copy but the
> other local address gets two copies. I even tried adding a third non
> local account to the alias and that also only got one copy. I then
> tried having the alias only delivery to the alternate local address
> and it still went through twice.
>
> For various reasons our old mail server is still MX for all of our
> mail and it's then relaying mail to the new server for those
> domains/users that have been migrated. Delivery direct to the new mail
> server doesn't result in this problem. I'm not sure where to start
> looking at the cause of this. Can anyone tell me what I'm doing wrong
> or point me at the documentation that would explain what's going on
> here.
>  

1st Guess: you have a content_filter but you forgot to disable address
rewrite before the filter. reread the FILTER README (and look for
no_address_rewrite).

> Thanks for any help.
> Guy
>
> Old server log:
> May  9 15:42:17 [postfix/smtpd] 93BAE20F195:
> client=barracuda.aluminati.org[72.9.230.26]
> May  9 15:42:17 [postfix/cleanup] 93BAE20F195:
> message-id=<[hidden email]>
> May  9 15:42:17 [postfix/qmgr] 93BAE20F195: from=<[hidden email]>,
> size=2985, nrcpt=2 (queue active)
> May  9 15:42:18 [postfix/smtp] 93BAE20F195: to=<[hidden email]>,
> orig_to=<[hidden email]>,
> relay=mink.aluminati.org[209.51.133.130], delay=1, status=sent (250
> 2.0.0 Ok: queued as 407FD118C352)
> May  9 15:42:18 [postfix/smtp] 93BAE20F195:
> to=<[hidden email]>,
> relay=mink.aluminati.org[209.51.133.130], delay=1, status=sent (250
> 2.0.0 Ok: queued as 407FD118C352)
> May  9 15:42:18 [postfix/qmgr] 93BAE20F195: removed
>
> New server log:
> May  9 15:42:11 mink postfix/smtpd[21711]: connect from localhost[127.0.0.1]
> May  9 15:42:11 mink postfix/smtpd[21711]: lost connection after
> CONNECT from localhost[127.0.0.1]
> May  9 15:42:11 mink postfix/smtpd[21711]: disconnect from localhost[127.0.0.1]
> May  9 15:42:16 mink dovecot: imap-login: Login:
> user=<[hidden email]>, method=PLAIN, rip=216.180.224.42,
> lip=209.51.133.130
> May  9 15:42:18 mink postfix/smtpd[21711]: connect from
> tg3.aluminati.org[65.254.41.154]
> May  9 15:42:18 mink postfix/smtpd[21711]: 407FD118C352:
> client=tg3.aluminati.org[65.254.41.154]
> May  9 15:42:18 mink postfix/cleanup[22427]: 407FD118C352:
> message-id=<[hidden email]>
> May  9 15:42:18 mink postfix/qmgr[19655]: 407FD118C352:
> from=<[hidden email]>, size=3186, nrcpt=3 (queue active)
> May  9 15:42:18 mink postfix/smtpd[21711]: disconnect from
> tg3.aluminati.org[65.254.41.154]
> May  9 15:42:18 mink authdaemond: received userid lookup request:
> [hidden email]
> May  9 15:42:18 mink authdaemond: authmysql: trying this module
> May  9 15:42:18 mink authdaemond: received userid lookup request:
> [hidden email]
> May  9 15:42:18 mink authdaemond: authmysql: trying this module
> May  9 15:42:18 mink authdaemond: SQL query: SELECT
> CONCAT(Username,'@',Domain), "", MD5Password, 1510, 1510, Maildir, "",
> CONCAT((QuotaVal*2),'S'), "", "" FROM members WHERE
> CONCAT(Username,'@',Domain) = "[hidden email]" AND (Status IN
> ('Active','Free'))
> May  9 15:42:18 mink authdaemond: SQL query: SELECT
> CONCAT(Username,'@',Domain), "", MD5Password, 1510, 1510, Maildir, "",
> CONCAT((QuotaVal*2),'S'), "", "" FROM members WHERE
> CONCAT(Username,'@',Domain) = "[hidden email]" AND (Status IN
> ('Active','Free'))
> May  9 15:42:18 mink authdaemond: Authenticated: sysusername=<null>,
> sysuserid=1510, sysgroupid=1510,
> homedir=/virtual/store1/mail/g/gme_aluminati.net,
> address=[hidden email], fullname=<null>, maildir=<null>,
> quota=1677721600S, options=<null>
> May  9 15:42:18 mink authdaemond: Authenticated: sysusername=<null>,
> sysuserid=1510, sysgroupid=1510,
> homedir=/virtual/store2/mail/m/minktest2_aluminati.net,
> address=[hidden email], fullname=<null>, maildir=<null>,
> quota=400000000S, options=<null>
> May  9 15:42:18 mink postfix/pipe[21896]: 407FD118C352:
> to=<[hidden email]>, relay=maildrop, delay=0.17,
> delays=0.04/0/0/0.12, dsn=2.0.0, status=sent (delivered via maildrop
> service)
> May  9 15:42:18 mink authdaemond: received userid lookup request:
> [hidden email]
> May  9 15:42:18 mink authdaemond: authmysql: trying this module
> May  9 15:42:18 mink authdaemond: SQL query: SELECT
> CONCAT(Username,'@',Domain), "", MD5Password, 1510, 1510, Maildir, "",
> CONCAT((QuotaVal*2),'S'), "", "" FROM members WHERE
> CONCAT(Username,'@',Domain) = "[hidden email]" AND (Status IN
> ('Active','Free'))
> May  9 15:42:18 mink authdaemond: Authenticated: sysusername=<null>,
> sysuserid=1510, sysgroupid=1510,
> homedir=/virtual/store1/mail/g/gme_aluminati.net,
> address=[hidden email], fullname=<null>, maildir=<null>,
> quota=1677721600S, options=<null>
> May  9 15:42:18 mink postfix/pipe[22083]: 407FD118C352:
> to=<[hidden email]>, relay=maildrop, delay=0.19,
> delays=0.04/0/0/0.14, dsn=2.0.0, status=sent (delivered via maildrop
> service)
> May  9 15:42:18 mink postfix/pipe[21987]: 407FD118C352:
> to=<[hidden email]>, orig_to=<[hidden email]>,
> relay=maildrop, delay=0.2, delays=0.04/0.13/0/0.02, dsn=2.0.0,
> status=sent (delivered via maildrop service)
> May  9 15:42:18 mink postfix/qmgr[19655]: 407FD118C352: removed
>
> Postfix version is mail_version = 2.5.1
> # postconf -n
> 2bounce_notice_recipient = [hidden email]
> address_verify_sender = [hidden email]
> anvil_rate_time_unit = 60s
> bounce_notice_recipient = [hidden email]
> bounce_template_file = /etc/postfix/bounce.cf
> broken_sasl_auth_clients = yes
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> cyrus_sasl_config_path = /etc/postfix/sasl/
> daemon_directory = /usr/lib/postfix
> debug_peer_level = 1
> debug_peer_list = 65.254.35.122, 216.180.224.42
> default_destination_concurrency_limit = 30
> delay_notice_recipient = [hidden email]
> delay_warning_time = 0h
> disable_vrfy_command = yes
> error_notice_recipient = [hidden email]
> fallback_transport = virtual
> home_mailbox = Maildir/
> html_directory = no
> inet_interfaces = 209.51.133.130, 10.0.7.180, localhost
> local_destination_concurrency_limit = 2
> local_recipient_maps =
> mail_name = Aluminati Network Group Mail Service
> mail_owner = postfix
> mailq_path = /usr/bin/mailq
> manpage_directory = /usr/local/man
> message_size_limit = 31240000
> mydestination = $myhostname, localhost.$mydomain, localhost
> mydomain = aluminati.net
> myhostname = mink.aluminati.org
> mynetworks = 127.0.0.0/8, 72.9.253.114, 207.210.68.98, 64.22.85.162,
> 64.22.101.58, 72.9.230.26, 91.186.26.25, 65.254.41.154
> myorigin = $mydomain
> newaliases_path = /usr/bin/newaliases
> notify_classes = software
> proxy_interfaces = 10.0.7.180, 209.51.133.130
> proxy_read_maps = $local_recipient_maps $mydestination
> $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps
> $virtual_mailbox_domains $relay_recipient_maps $relay_domains
> $canonical_maps $sender_canonical_maps $recipient_canonical_maps
> $relocated_maps $transport_maps $mynetworks
> $virtual_mailbox_limit_maps
> queue_directory = /var/spool/postfix
> readme_directory = no
> relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
> sample_directory = /etc/postfix
> sendmail_path = /usr/sbin/sendmail
> setgid_group = postdrop
> smtp_connect_timeout = 30s
> smtp_data_done_timeout = 900s
> smtp_data_init_timeout = 180s
> smtp_data_xfer_timeout = 300s
> smtp_helo_timeout = 300s
> smtp_mail_timeout = 300s
> smtp_quit_timeout = 300s
> smtp_rcpt_timeout = 300s
> smtp_rset_timeout = 20s
> smtpd_banner = $myhostname ESMTP
> smtpd_client_connection_rate_limit = 200
> smtpd_client_message_rate_limit = 200
> smtpd_client_recipient_rate_limit = 0
> smtpd_client_restrictions = permit_mynetworks   ,reject_rbl_client
> sbl-xbl.spamhaus.org ,permit_sasl_authenticated      ,reject
> smtpd_data_restrictions = reject_unauth_pipelining,     permit
> smtpd_error_sleep_time = 1s
> smtpd_hard_error_limit = 20
> smtpd_helo_required = yes
> smtpd_recipient_restrictions = permit_mynetworks,
> permit_sasl_authenticated,      reject_unauth_destination,
> reject_invalid_hostname,        reject_non_fqdn_sender,
> reject_unknown_sender_domain,   reject_rhsbl_sender
> sbl-xbl.spamhaus.org
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain =
> smtpd_sasl_path = smtpd
> smtpd_sasl_security_options = noanonymous
> smtpd_soft_error_limit = 10
> smtpd_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
> smtpd_tls_cert_file = /etc/ssl/certs/imapd.pem
> smtpd_tls_key_file = /etc/ssl/private/imapd.pem
> smtpd_tls_session_cache_timeout = 3600s
> smtpd_use_tls = yes
> tls_random_source = dev:/dev/urandom
> transport_maps = proxy:mysql:/etc/postfix/mysql_transport_maps.cf
> unknown_local_recipient_reject_code = 550
> virtual_alias_maps =
> proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
> proxy:mysql:/etc/postfix/mysql_virtual_catchall_maps.cf
> virtual_gid_maps = static:1510
> virtual_mailbox_base = /
> virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
> virtual_mailbox_limit = 104857600
> virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
> virtual_transport = maildrop
> virtual_uid_maps = static:1510
>
>
>