ispCP - Board - Support
[SOLVED] maia and mail duplicates - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] maia and mail duplicates (/thread-5205.html)



[SOLVED] maia and mail duplicates - Kris - 12-19-2008 06:49 PM

Hi,

after installing maia on rc6/rc7 (debian etch) all mails are send twice.
(Installed following this walk-through: http://www.isp-control.net/documentation/howto/mail/install_maia_mailguard_1.0.2a_on_ispcp_omega_rc3)

Commenting out:
content_filter = amavis:[127.0.0.1]:10024
from postfix' main.cf fixes the problem, but disables the filter.

I've attached postfix logs. A mail sent to the server when amavis is enabled and one where its disabled:

With amavis:
Code:
Dec 17 15:37:07 itoc-hosting01 amavis[16473]: (16473-07) Passed CLEAN, [10.10.3.30] [10.10.3.30] <Sender> -> <remote_recipient>,<local_recipient>,<mailinglistaddress>, Message-ID: <20081217143707.7A98A35117D@puppet>, Hits: -, 134 ms
Dec 17 15:37:07 itoc-hosting01 postfix/smtp[28769]: 929F5900C1: to=<remote_recipient>, orig_to=<mailinglistaddress>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.16, delays=0.01/0.01/0/0.14, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=16473-07, from MTA: 250 2.0.0 Ok: queued as A959390125)
Dec 17 15:37:07 itoc-hosting01 postfix/smtp[28769]: 929F5900C1: to=<local_recipient>, orig_to=<mailinglistaddress>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.16, delays=0.01/0.01/0/0.14, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=16473-07, from MTA: 250 2.0.0 Ok: queued as A959390125)
Dec 17 15:37:07 itoc-hosting01 postfix/smtp[28769]: 929F5900C1: to=<mailinglistaddress>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.16, delays=0.01/0.01/0/0.14, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=16473-07, from MTA: 250 2.0.0 Ok: queued as A959390125)
Dec 17 15:37:07 itoc-hosting01 postfix/virtual[28933]: A959390125: to=<local_recipient>, relay=virtual, delay=0.07, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Dec 17 15:37:07 itoc-hosting01 postfix/virtual[28933]: A959390125: to=<local_recipient>, orig_to=<mailinglistaddress>, relay=virtual, delay=0.07, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Dec 17 15:37:07 itoc-hosting01 postfix/virtual[28934]: A959390125: to=<mailinglistaddress>, relay=virtual, delay=0.07, delays=0.05/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Dec 17 15:37:08 itoc-hosting01 postfix/smtp[28932]: A959390125: to=<remote_recipient>, relay=gmail-smtp-in.l.google.com[64.233.183.114]:25, delay=0.67, delays=0.05/0.01/0.07/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 1229524628 6si23446321nfv.55)
Dec 17 15:37:08 itoc-hosting01 postfix/smtp[28932]: A959390125: to=<remote_recipient>, orig_to=<mailinglistaddress>, relay=gmail-smtp-in.l.google.com[64.233.183.114]:25, delay=0.67, delays=0.05/0.01/0.07/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 1229524628 6si23446321nfv.55)

Without amavis:
Code:
Dec 17 16:45:39 itoc-hosting01 postfix/virtual[27434]: 0808290150: to=<local_recipient>, orig_to=<mailinglistaddress>, relay=virtual, delay=0.04, delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Dec 17 16:45:39 itoc-hosting01 postfix/virtual[27444]: 0808290150: to=<mailinglistaddress>, relay=virtual, delay=0.04, delays=0.02/0.02/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Dec 17 16:45:39 itoc-hosting01 postfix/smtp[27432]: 0808290150: to=<remote_recipient>, orig_to=<mailinglistaddress>, relay=gmail-smtp-in.l.google.com[64.233.183.114]:25, delay=0.49, delays=0.02/0.01/0.06/0.39, dsn=2.0.0, status=sent (250 2.0.0 OK 1229528739 c9si2457480nfi.5)
Dec 17 16:45:41 itoc-hosting01 postfix/virtual[27434]: 54FD990150: to=<local_recipient>, relay=virtual, delay=0.06, delays=0.05/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)



RE: maia and mail duplicates - BeNe - 12-20-2008 01:25 AM

Can you please post your config with
Code:
postconf -n

Greez BeNe


RE: maia and mail duplicates - Kris - 12-20-2008 01:32 AM

Sure, here it is:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
inet_interfaces = all
inet_protocols = ipv4
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = host.domain.com.local
myhostname = host.domain.com
mynetworks = 127.0.0.1, 10.10.0.0/16
mynetworks_style = host
myorigin = $myhostname
notify_classes = resource, software, protocol
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP ispCP 1.0.0 RC7 OMEGA Managed
smtpd_data_restrictions = reject_multi_recipient_bounce, reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
transport_maps = hash:/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/etc/postfix/ispcp/aliases
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 2002
virtual_transport = virtual
virtual_uid_maps = static:2002


RE: maia and mail duplicates - Kris - 12-20-2008 11:25 PM

Hi again,

This only happens with mailadresses that are forwarded AND normal mail, created like this:
In iscpcp:
add mail user
check normal mail
check forward mail

Standard user accounts or forwards, that does not have "normal mail" checked, works...

Thanks for your help :-)

Regards
Kris


RE: [SOLVED] maia and mail duplicates - Kris - 12-26-2008 10:30 PM

How come this thread has been marked solved?
I still have this problem... Sad

Any pointers are greatly appreciated.


RE: [SOLVED] maia and mail duplicates - lschafroth - 12-27-2008 02:01 AM

I agree, this must be reported as a bug.

You should be able to have a normal email address set to forward and not get duplicates. You should not be forced to delete the account, losing all emails, then recreate it as a forward only account.

Needs fixed.

Lannie


RE: [SOLVED] maia and mail duplicates - Kris - 12-30-2008 10:11 PM

Unfortunately I need the "real" mailbox... Sad

Should I report this a bug or is that already done?
Is it a maia or ispcp bug?

Kristoffer