Bug 340746

Summary: Using YaST2 Advanced Mail Configuration does not enable Amavis
Product: [openSUSE] openSUSE 10.3 Reporter: Alan Hughes <alanhughes>
Component: YaST2Assignee: Peter Varkoly <varkoly>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: alanhughes
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST logs (as requested)
Test mail log with Amavis enabled
Postfix main.cf
Postfix master.cf

Description Alan Hughes 2007-11-09 20:26:21 UTC
We are configuring the e-mail system (using Postfix) using the Advanced E-Mail utility so that we can make use of the LDAP directory service. When Postfix was configured with the Simple E-mail utility it, e-mails where happily routed through Amavis for anti-spam and anti-virus filtering, however when we switched to the Advanced E-mail utility no e-mails were directed through Amavis, despite the "Run Amavis" box being ticked.

Yast2 does not appear to report any errors during the e-mail configuration process.

/var/log//mail does not indicate that Postfix is finding any errors; instead post is delivering mail to Cyrus IMAP without attempting to send anything to Amavis.

So the question is: can Amavisd be used in conjunction with Postfix/LDAP. If so, how do we set it up?
Comment 1 Martin Mrazik 2007-11-12 11:52:45 UTC
Thank you for your bugreport.
Could you please attach yast2 logs? If in doubt please follow http://en.opensuse.org/Bugs/YaST
Comment 2 Alan Hughes 2007-11-12 17:21:10 UTC
Created attachment 183044 [details]
YaST logs (as requested)

YaST logs will include two reconfigs I just performed: the first switches Amavis off, while the second one re-enables Amavis on the e-mail system.
Comment 3 Alan Hughes 2007-11-12 17:23:00 UTC
Created attachment 183045 [details]
Test mail log with Amavis enabled

Attached is an extract from /var/log/mail for a test message sent when Amavis is surposed to be enabled. Note that there are no entries from the Amavis deamon!
Comment 4 Alan Hughes 2007-11-12 17:24:23 UTC
Requested information supplied
Comment 5 Peter Varkoly 2007-11-27 16:57:21 UTC
Fixed packages are in
ftp://ftp.suse.com/pub/people/varkoly/yast2-mail-server

Comment 6 Alan Hughes 2008-01-10 15:04:18 UTC
Sorry for the delay, I had to get some other very-high priority work done.

I've installed the updated packages (yast2-mail-2.15.24-0.1 and yast2-mail-plugins-2.15.24-0.1) and test them. I'm afraid that the problem still exists; I see the following messages in /var/log/mail when I sent a test message to root (note: domain has been removed):

Jan 10 14:58:55 pollux postfix/qmgr[686]: C419DA00235: from=<root@xxx>, size=483, nrcpt=1 (queue active)
Jan 10 14:58:55 pollux postfix/local[704]: C419DA00235: to=<admin@xxx>, orig_to=<root@xxx>, relay=local, delay=0.09, delays=0.07/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Jan 10 14:58:55 pollux postfix/qmgr[686]: C419DA00235: removed

In addition attempting to set up Cyrus-IMAP as the MDA instead of Procmail results in Yast2 displaying a blank screen instead of the configuration parameters.

Please re-open this bug
Comment 7 Alan Hughes 2008-01-16 20:20:20 UTC
Reopen bug; fix does not work for me (see previous comment).
Comment 8 Peter Varkoly 2008-01-29 15:24:14 UTC
Sorry but I can not reproduce your problem. I've installed 10.3 min 6 times and have configured my mailserver with yast2 mail. A've got some problems but the problem you have written never. In your logfile I can only see, that amavis was starteted:
2007-11-12 17:11:05 <1> pollux(24543) [YCP] Service.ycp:388 Enabling service amavis
2007-11-12 17:11:05 <1> pollux(24543) [YCP] Service.ycp:388 Enabling service clamd
2007-11-12 17:11:05 <1> pollux(24543) [-e] -- WriteMailPrevention --
2007-11-12 17:11:05 <1> pollux(24543) [YCP] Service.ycp:388 Enabling service amavis
2007-11-12 17:11:06 <1> pollux(24543) [YCP] Service.ycp:388 Enabling service clamd
2007-11-12 17:11:06 <1> pollux(24543) [YCP] Service.ycp:411 Starting service amavis
2007-11-12 17:11:06 <1> pollux(24543) [YCP] Service.ycp:279 Running service initscript amavis start
2007-11-12 17:11:06 <1> pollux(24543) [YCP] Service.ycp:411 Starting service clamd
2007-11-12 17:11:06 <1> pollux(24543) [YCP] Service.ycp:279 Running service initscript clamd start

Can you send me your /etc/postfix/main.cf & /etc/postfix/master.cf too.
Comment 9 Alan Hughes 2008-01-30 19:15:25 UTC
Created attachment 192401 [details]
Postfix main.cf
Comment 10 Alan Hughes 2008-01-30 19:16:00 UTC
Created attachment 192402 [details]
Postfix master.cf
Comment 11 Alan Hughes 2008-01-30 19:19:17 UTC
Peter

The fact that you can only see amavis start is really the issue. It is *never* passed any e-mails from Postfix.

BTW, I also use 10.3 at home with Postfix configured using the "simple" configuration tool. No problems there. If I set up postfix on the effected system with the simple tool then again e-mails get passed to amavis correctly. Its only when its configured using the "advanced" tool that there is a problem.

Question: does Postfix use the LDAP directory entries in some way to decide whether or not to pass things through amavis?
Comment 12 Peter Varkoly 2008-04-18 13:01:32 UTC
Sorry for beeing to late. No postfix do not use LDAP for to decide
whether or not to pass things through amavis.

We are goin make a maintainance update in the next time