ZhangHuangbin wrote:tech_conmet wrote:sent a message from aa@fake.org -> aa@fake.org with no disclaim results.
It won't sign disclaimer text while recipient is same as sender.
That was i thought too, but creating another user (andrea@fake.org) and sending email each other, still get no results:
These is usefull data log:
Sent email from aa@fake.org -> andrea@fake.org
#### tail -f /var/log/maillog #####
Mar 12 14:13:10 mioserver postfix/smtpd[3217]: connect from mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:10 mioserver postfix/smtpd[3217]: DA9E2198510: client=mioserver.conmet.local[127.0.0.1], sasl_method=LOGIN, sasl_username=aa@fake.org
Mar 12 14:13:10 mioserver postfix/cleanup[3221]: DA9E2198510: message-id=<28c8545f5768c30544f3f0f00871ae0a@127.0.0.1>
Mar 12 14:13:10 mioserver postfix/qmgr[3205]: DA9E2198510: from=<aa@fake.org>, size=529, nrcpt=1 (queue active)
Mar 12 14:13:10 mioserver roundcube: [12-Mar-2010 14:13:10 +0100]: User aa@fake.org [172.16.200.137]; Message for Andrea AtFakeOrg <andrea@fake.org>; 250: 2.0.0 Ok: queued as DA9E2198510
Mar 12 14:13:10 mioserver postfix/smtpd[3217]: disconnect from mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:13 mioserver postfix/smtpd[3229]: connect from mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:13 mioserver postfix/smtpd[3229]: 090B1198535: client=mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:13 mioserver postfix/cleanup[3221]: 090B1198535: message-id=<28c8545f5768c30544f3f0f00871ae0a@127.0.0.1>
Mar 12 14:13:13 mioserver postfix/qmgr[3205]: 090B1198535: from=<aa@fake.org>, size=999, nrcpt=1 (queue active)
Mar 12 14:13:13 mioserver amavis[3154]: (03154-01) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <aa@fake.org> -> <andrea@fake.org>, Message-ID: <28c8545f5768c30544f3f0f00871ae0a@127.0.0.1>, mail_id: C+3qInBqt-w2, Hits: -0.733, size: 529, queued_as: 090B1198535, 2098 ms
Mar 12 14:13:13 mioserver postfix/smtp[3223]: DA9E2198510: to=<andrea@fake.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.2, delays=0.05/0.05/0.02/2.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03154-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 090B1198535)
Mar 12 14:13:13 mioserver postfix/qmgr[3205]: DA9E2198510: removed
Mar 12 14:13:13 mioserver postfix/pipe[3231]: 090B1198535: to=<andrea@fake.org>, relay=dovecot, delay=0.11, delays=0.02/0.01/0/0.07, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 12 14:13:13 mioserver postfix/qmgr[3205]: 090B1198535: removed
So message is processed and sent, but no append....
####### this is my amavisd.conf (cutted) ##############
# ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ]; <---- MANUALLY UNCOMENTED, AS REQUIRED INTO FAQ
# Program used to signing disclaimer in outgoing mails.
$altermime = '/usr/bin/altermime';
# Disclaimer in plain text formart.
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt);
@disclaimer_options_bysender_maps = ({
# Per-domain disclaimer setting: /etc/postfix/disclaimer/host1.iredmail.org.txt
#'host1.iredmail.org' => 'host1.iredmail.org',
# Sub-domain disclaimer setting: /etc/postfix/disclaimer/iredmail.org.txt
#'.iredmail.org' => 'iredmail.org',
'.fake.org' => 'fake.org', <----- MANUALLY ADDED
# Per-user disclaimer setting: /etc/postfix/disclaimer/boss.iredmail.org.txt
#'boss@iredmail.org' => 'boss.iredmail.org',
# Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
'.' => 'default',
},);
# ------------ End Disclaimer Setting ---------------
########## Other infos ###############
# ls -la /etc/postfix/disclaimer/
total 24
drwxr-xr-x 2 root root 4096 Mar 12 14:12 .
drwxr-xr-x 3 root root 4096 Mar 11 16:18 ..
-rw-r--r-- 1 root root 65 Mar 11 11:24 default.txt
-rw-r--r-- 1 root root 60 Mar 12 14:12 fake.org <--- SO DISCLAIM TEXT EXISTS
############### Ldif of aa@fake.org and andrea@fake.org ####################
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (mail=andrea@fake.org)
# requesting: ALL
#
# andrea@fake.org, Users, fake.org, domains, conmet.local
dn: mail=andrea@fake.org,ou=Users,domainName=fake.org,o=domains,dc=conmet,dc=l
ocal
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: andrea@fake.org
userPassword:: e1NTSEF9Wm9HS09LWlZMNnFUN0N1R2F1dWp2clBLWVYxbFNhejd2Y2t3R1E9PQ=
=
sn: andrea
uid: andrea
storageBaseDirectory: /var/vmail/vmail01
mailMessageStore: fake.org/a/an/and/andrea-2010.03.11.16.36.01/
homeDirectory: /var/vmail/vmail01/fake.org/a/an/and/andrea-2010.03.11.16.36.01
/
enabledService: mail
enabledService: smtp
enabledService: deliver
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
mailQuota: 104857600
cn: Andrea AtFakeOrg
accountStatus: active
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
---------------------------------------------------------------
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (mail=aa@fake.org)
# requesting: ALL
#
# aa@fake.org, Users, fake.org, domains, conmet.local
dn: mail=aa@fake.org,ou=Users,domainName=fake.org,o=domains,dc=conmet,dc=local
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: aa@fake.org
userPassword:: e1NTSEF9S2pGZ1RIUHQvOE1LNnc3d3NqMmVoQWtNaDdlNTJWNUNROXpKcGc9PQ=
=
sn: aa
uid: aa
storageBaseDirectory: /var/vmail/vmail01
mailMessageStore: fake.org/a/aa/aaa/aa-2010.03.12.14.08.41/
homeDirectory: /var/vmail/vmail01/fake.org/a/aa/aaa/aa-2010.03.12.14.08.41/
accountStatus: active
enabledService: mail
enabledService: smtp
enabledService: deliver
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
mailQuota: 104857600
cn: AaA
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
What I'm missing? It seems all right, isn't it?
Thanks,
ConMET