1

Topic: Every mail treated as local mail.

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

I have Irdemail with mysql. My problem is shown in the log below:

Jul 11 13:54:35 mail postfix/smtpd[23494]: connect from unknown[190.251.137.187]
Jul 11 13:54:36 mail postfix-policyd: rcpt=4889, throttle_rcpt=clear(a), host=190.251.137.187, from=debt56@marston.com, to=va@xxxx.hu, count=0/64(32), t
hreshold=0%
Jul 11 13:54:36 mail postfix/smtpd[23494]: A13A7138246C: client=unknown[190.251.137.187]
Jul 11 13:54:36 mail postfix/cleanup[23497]: A13A7138246C: message-id=<4320593520.GL6VJQKV060563@nitgilya.qtxbeqdlyww.ua>
Jul 11 13:54:37 mail postfix/qmgr[28761]: A13A7138246C: from=<debt56@marston.com>, size=2006, nrcpt=1 (queue active)
Jul 11 13:54:37 mail amavis[23521]: (23521-02) ESMTP::10024 /var/lib/amavis/tmp/amavis-20120711T135248-23521: <debt56@marston.com> -> <va@xxxx.hu> SIZE=
2006 Received: from mail.xxxx.hu ([127.0.0.1]) by localhost (xxxx.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <va@xxxx.hu>; Wed,
11 Jul 2012 13:54:37 +0200 (CEST)
Jul 11 13:54:37 mail amavis[23521]: (23521-02) Checking: ROPTCGxJ41sb [190.251.137.187] <debt56@marston.com> -> <va@xxxx.hu>
Jul 11 13:54:37 mail postfix/smtpd[23494]: disconnect from unknown[190.251.137.187]
Jul 11 13:54:37 mail amavis[23521]: (23521-02) local delivery: <> -> spam-quarantine, mbx=/var/lib/amavis/virusmails/R/spam-ROPTCGxJ41sb.gz
Jul 11 13:54:37 mail postfix/smtpd[23482]: connect from localhost[127.0.0.1]
Jul 11 13:54:37 mail postfix/smtpd[23482]: 714F91382470: client=localhost[127.0.0.1]
Jul 11 13:54:37 mail postfix/cleanup[23483]: 714F91382470: message-id=<4320593520.GL6VJQKV060563@nitgilya.qtxbeqdlyww.ua>
Jul 11 13:54:37 mail postfix/smtpd[23482]: disconnect from localhost[127.0.0.1]
Jul 11 13:54:37 mail postfix/qmgr[28761]: 714F91382470: from=<debt56@marston.com>, size=2831, nrcpt=1 (queue active)
Jul 11 13:54:37 mail amavis[23521]: (23521-02) FWD via SMTP: <debt56@marston.com> -> <va@xxxx.hu>,BODY=7BIT 250 2.0.0 Ok, id=23521-02, from MTA([127.0.0
.1]:10025): 250 2.0.0 Ok: queued as 714F91382470
Jul 11 13:54:37 mail amavis[23521]: (23521-02) Passed SPAM, LOCAL [190.251.137.187] [143.65.85.117] <debt56@marston.com> -> <va@xxxx.hu>, quarantine: R/
spam-ROPTCGxJ41sb.gz, Message-ID: <4320593520.GL6VJQKV060563@nitgilya.qtxbeqdlyww.ua>, mail_id: ROPTCGxJ41sb, Hits: 7.708, size: 2005, queued_as: 714F9138247
0, 493 ms
Jul 11 13:54:37 mail postfix/smtp[23476]: A13A7138246C: to=<va@xxxx.hu>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.49/0/0/0.61, dsn=2.0.0, s
tatus=sent (250 2.0.0 Ok, id=23521-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 714F91382470)
Jul 11 13:54:37 mail postfix/qmgr[28761]: A13A7138246C: removed
Jul 11 13:54:38 mail postfix/pipe[23485]: 714F91382470: to=<va@xxxx.hu>, relay=dovecot, delay=0.64, delays=0.1/0/0/0.54, dsn=2.0.0, status=sent (deliver
ed via dovecot service)
Jul 11 13:54:38 mail postfix/qmgr[28761]: 714F91382470: removed

My amavis conf is set to BOUNCE spam mails. As you see, it quarantaines the mail, but anyway sends them to the users.

Do you have a solutions on this? 

Thanx

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Every mail treated as local mail.

forgulencia wrote:

My amavis conf is set to BOUNCE spam mails. As you see, it quarantaines the mail, but anyway sends them to the users.

Please show us below Amavisd setting in your Amavisd config file:

$final_spam_destiny       = D_PASS;

3

Re: Every mail treated as local mail.

I don't know why i was unable to see that in config, now i just opened the file and that was just right there. Meanwhile I set up a sieve rule, what pushes the junk mail to the junk folder. Thanx for the reply!