1 (edited by karl_cz 2011-08-17 23:44:46)

Topic: Amavis problem

Hi, I bought today pro version. At first I installed open source version and after pro. But I have problem with amavis, below is part of my log. Can anyone help me?

Aug 17 15:35:56 mail amavis[29691]: (!)DENIED ACCESS from IP X.X.X.X, policy bank ''

(where X.X.X.X is my external IP adresse)

My server: Debian Squeeze - Vserver, version of iRedAdmin 0.1.4

2

Re: Amavis problem

You can append you external IP address in Amavisd config file:

@mynetworks = qr();

Could you please post log content before and after this log? We need context to help troubleshoot.

3 (edited by karl_cz 2011-08-18 14:04:13)

Re: Amavis problem

Hi,
setup @mynetworks didn't help. So I found, that I can setup @inet_acl = qw(  ); which helps.
Below is part of mail.log:

Aug 18 07:36:32 mail postfix/smtpd[7808]: connect from xxxxxx.xxxxx.xx[x.x.x.x]
Aug 18 07:36:32 mail postfix/smtpd[7808]: D6AC6942C97: client=xxxxxx.xxxxx.xx[x.x.x.x], sasl_method=LOGIN, sasl_username=www@xxx.xx
Aug 18 07:36:32 mail postfix/cleanup[7812]: D6AC6942C97: message-id=<a2965ae0515fe1df83508aa15597f6d1@xxx.xx>
Aug 18 07:36:32 mail postfix/qmgr[6299]: D6AC6942C97: from=<www@xxx.xx>, size=540, nrcpt=1 (queue active)
Aug 18 07:36:32 mail roundcube: User www@xxx.xx [83.208.13.32]; Message for sombody.email@gmail.com 250: 2.0.0 Ok: queued as D6AC6942C97
Aug 18 07:36:33 mail postfix/smtpd[7808]: disconnect from xxxxxx.xxxxx.xx[x.x.x.x]
Aug 18 07:36:33 mail postfix/smtpd[7817]: connect from xxxxxx.xxxxx.xx[x.x.x.x]
Aug 18 07:36:33 mail postfix/smtpd[7817]: NOQUEUE: reject: CONNECT from xxxxxx.xxxxx.xx[x.x.x.x]: 554 5.7.1 <xxxxxx.xxxxx.xx[x.x.x.x]>: Client host rejected: Access denied; proto=SMTP
Aug 18 07:36:33 mail amavis[7411]: (07411-01) (!)FWD via SMTP: <www@xxx.xx> -> <sombody.email@gmail.com>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: 554 5.7.1 <xxxxxx.xxxxx.xx[x.x.x.x]>: Client host rejected: Access denied at (eval 113) line 596, <GEN48> line 15.): id=07411-01
Aug 18 07:36:33 mail amavis[7411]: (07411-01) Blocked MTA-BLOCKED, MYUSERS LOCAL [x.x.x.x] [x.x.x.x] <www@xxx.xx> -> <sombody.email@gmail.com>, Message-ID: <a2965ae0515fe1df83508aa15597f6d1@xxx.xx>, mail_id: jdClylQsBjor, Hits: -10, size: 540, 823 ms
Aug 18 07:36:33 mail postfix/smtpd[7817]: disconnect from xxxxxx.xxxxx.xx[x.x.x.x]
Aug 18 07:36:33 mail postfix/smtp[7813]: D6AC6942C97: to=<sombody.email@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.2, delays=0.32/0.01/0.11/0.72, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: 554 5.7.1 <xxxxxx.xxxxx.xx[x.x.x.x]>: Client host rejected: Access denied at (eval 113) line 596, <GEN48> line 15.): id=07411-01 (in reply to end of DATA command))

But if I comment this line in main.cf:
content_filter = smtp-amavis:[127.0.0.1]:10024 to #content_filter = smtp-amavis:[127.0.0.1]:10024
I can send and recive mails, but I thing, that all is without amavis (and spamd, clamav ...).

I have another questions:

- in my 50-user.conf at @mynetworks I have this, is that right?

@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
                  10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );

- next question is about statistics (count of send email, received email), how it counts? Because I think, that it don't counts right and if it counts, it shows for every subject "Test"

4

Re: Amavis problem

Did you change any Amavisd setting after setting up iRedMail? Default setting should work well.

karl_cz wrote:

- in my 50-user.conf at @mynetworks I have this, is that right?

@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
                  10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );

It's default setting in Amavisd.

karl_cz wrote:

- next question is about statistics (count of send email, received email), how it counts? Because I think, that it don't counts right and if it counts, it shows for every subject "Test"

You must integrate MySQL in Amavisd, so that Amavisd will log all basic information of incoming/outgoing mails in MySQL. It's enabled by default since iRedMail-0.7.0.

If you want to know more detail, here's tutorial: http://iredmail.org/wiki/index.php?titl … in.Amavisd

5

Re: Amavis problem

In Amavis I changed nothing,  only installed open source version and after that pro admin.

I checked everything, but by amavis is any problem and I don't know what's for problem.

ad. Statistics
it counts realtime? Because when I send mail, counts in statistics change lates, but at summary of send emails or received emails show subject Test - why?

6 (edited by karl_cz 2011-08-18 16:25:54)

Re: Amavis problem

Is possible If I give you ssh access, that you look on configuration on server?

7

Re: Amavis problem

karl_cz wrote:

ad. Statistics
it counts realtime? Because when I send mail, counts in statistics change lates, but at summary of send emails or received emails show subject Test - why?

After sending out email, you should wait for some seconds, until Amavisd processes it and log related info into MySQL database.

What do you mean "show subject Test"? Can you capture a screenshot to help me understand this issue?

8 (edited by karl_cz 2011-08-18 23:30:05)

Re: Amavis problem

Hi in attachments is print screen. Is possible, that I give you access to my server and you look where can be problem with amavis? I'll pay you ...

Post's attachments

print-iredmail-admin.jpg
print-iredmail-admin.jpg 91.22 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

9

Re: Amavis problem

Did you send mail with subject 'Test'? I checked iRedAdmin-Pro moment ago, it doesn't hard-code mail subject as 'Test'.
Try sending an email with different mail subject.

If you prefer to let me login to your server remotely, please mail me: http://www.iredmail.org/contact.html
(P.S. I live in China mainland, timezone is GMT +8.)