#1  
Old 9th May 2009, 15:13
malikperera malikperera is offline
Junior Member
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default amavis delete every mail

Hello,
I installed Ubuntu 9.04 using the procedure perfect-server-ubuntu-9.04-ispconfig-2 , But did not install Ispconfig.
Then I used procedure Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Debian Lenny) to configure Postfix and all email related software.

At the moment I have issue with sending or receive email. All the time amavis delete email due to spam. Even email from local host. Only I could send (local) email my command line using mailx.
I can see following in the mail.info log

May 9 21:54:29 web amavis[3281]: (03281-01) Blocked SPAM, LOCAL [IPv6:::1] [IPv6:::1] <malik@xxx.com> <malik@xxx.com>, quarantine: f/spam-fihbDZGcHhfe.gz, Message-ID: <ce1bd781a4442d18c8f0b39973d0b20c.squirrel@10.10.1 .2>, mail_id: fihbDZGcHhfe, Hits: 8.643, size: 832, 14701 ms
May 9 21:54:29 web postfix/smtp[6220]: DC951C0BB: to=<malik@xxx.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=15, delays=0.14/0.06/0.03/15, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=03281-01 – SPAM)

At moment listing ports look like this.
oot@web:/etc/amavis/conf.d# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:10024 *:* LISTEN 2332/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN 3095/master
tcp 0 0 localhost:mysql *:* LISTEN 2407/mysqld
tcp 0 0 *:www *:* LISTEN 3260/apache2
tcp 0 0 web.xxx:domain *:* LISTEN 2282/named
tcp 0 0 localhost:domain *:* LISTEN 2282/named
tcp 0 0 *:ssh *:* LISTEN 2304/sshd
tcp 0 0 *:smtp *:* LISTEN 3095/master
tcp 0 0 localhost:953 *:* LISTEN 2282/named
tcp 0 0 *:https *:* LISTEN 3260/apache2
tcp 0 0 web.xxx.:ssh 10.10.1.20:40579 ESTABLISHED 6157/sshd: malik [p
tcp 0 0 web.xxx.:ssh 10.10.1.20:40580 ESTABLISHED 6182/sshd: malik [p
tcp 0 0 web.xxx.:ssh 10.10.1.20:47747 ESTABLISHED 6229/sshd: malik [p
tcp6 0 0 [::]:imaps [::]:* LISTEN 2985/couriertcpd
tcp6 0 0 [::]op3s [::]:* LISTEN 3023/couriertcpd
tcp6 0 0 [::]op3 [::]:* LISTEN 3001/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 2963/couriertcpd
tcp6 0 0 [::]:ftp [::]:* LISTEN 3166/proftpd: (acce
tcp6 0 0 [::]:domain [::]:* LISTEN 2282/named
tcp6 0 0 [::]:ssh [::]:* LISTEN 2304/sshd
tcp6 0 0 [::]:smtp [::]:* LISTEN 3095/master
tcp6 0 0 localhost:953 [::]:* LISTEN 2282/named
root@web:/etc/amavis/conf.d#

This problem occurred when I trying to send email to local domain or to out side (such as gmail)
I did not test receiving email from Internet.
I already spend few hours, but could not figure out what went wrong.
Hope somebody could help me.

I also notice following in the log, IMAP working on IPV6 but amavis only IPV4.
Is this related? How could I change to everything to IPV4
May 10 00:15:41 web imapd: LOGOUT, user=malik@xxxt.com, ip=[::1], headers=0, body=0, rcvd=678, sent=204, time=0
May 10 00:15:41 web imapd: LOGIN, user=malik@xxx.com, ip=[::1], port=[36340], protocol=IMAP
May 10 00:15:41 web imapd: LOGOUT, user=malik@xxx.com, ip=[::1], headers=405, body=0, rcvd=296, sent=2032, time=0
May 10 00:15:47 web amavis[10579]: (10579-01) Blocked SPAM, LOCAL [IPv6:::1] [IPv6:::1] <malik@xxx.com> -> <postmaster@xxx.com>, quarantine: 0/spam-0EX7HZwV7szT.gz, Message-ID: <89e1817129d442ee9f524dd6ad58c32e.squirrel@10.10.1 .2>, mail_id: 0EX7HZwV7szT, Hits: 7.355, size: 784, 6409 ms
May 10 00:15:47 web postfix/smtp[10586]: 1217E7FC4: to=<postmaster@xxx.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.5, delays=0.08/0.03/0.03/6.4, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10579-01 - SPAM)
May 10 00:15:47 web postfix/qmgr[10560]: 1217E7FC4: removed

Last edited by malikperera; 9th May 2009 at 16:20. Reason: more information
Reply With Quote
Sponsored Links
  #2  
Old 9th May 2009, 16:33
malikperera malikperera is offline
Junior Member
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Well I manage to fix the issue. Problem was local host not in the white list

I needed to bypass SPAM checks that amavisd does based on IP-address. For email address i do this with whitelists, but for IP-address i needed to create a policy_bank in amavisd.conf:

$policy_bank{'MYNETS'} = { # clients in @mynetworks
bypass_spam_checks_maps => [1], # don't spam-check internal mail
bypass_banned_checks_maps => [1], # don't banned-check internal mail
bypass_header_checks_maps => [1], # don't header-check internal mail
};

This uses the built-in MYNETS policy that uses the addresses from @mynetworks. So I edited @mynetworks to allow the IP i wanted.

from http://conf.se/?p=22
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 04:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.