Mailinglist Archive: opensuse-bugs (2150 mails)

< Previous Next >
[Bug 873324] New: config.postfix strips off arguments to smtpd
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sat, 12 Apr 2014 12:19:03 +0000
  • Message-id: <bug-873324-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=873324

https://bugzilla.novell.com/show_bug.cgi?id=873324#c0


Summary: config.postfix strips off arguments to smtpd
Classification: openSUSE
Product: openSUSE 13.1
Version: Final
Platform: All
OS/Version: openSUSE 13.1
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: Michael.Zapf@xxxxxx
QAContact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101
Firefox/28.0

If spamassassin shall be used with Postfix, an argument like "-o
content_filter=spamassassin" must be added to the smtp line in master.cf.

However, the config.postfix script strips off these arguments:

line 866: if( /\#?\s*(smtp\s+inet.*?smtpd)/ ) {

matches until "smtpd" and thus clears a trailing "-o
content-filter=spamassassin"

The arguments can neither be put in the following line, since lines 924 ff.
of config.postfix

} elsif ( /\#?\s\s(-o\s+content_filter=.*)/ ) {
if ( $use_amavis ne "yes" ) {
$line = "# ".$1;

comment out that line unless amavis is set to be used.


Reproducible: Always

Steps to Reproduce:
1. Add "-o content_filter=spamassassin" at the end of the line for smtp in
master.cf, or as a new line after the line for smtp. Do not enable amavis.
2. Call /usr/sbin/config.postfix

Actual Results:
Arguments containing "content_filter" are stripped off or commented out.

Expected Results:
Arguments shall be retained.

Can be worked around by manually editing master.cf after the last call of
config.postfix. MAIL_CREATE_CONFIG should be set to "no". However, this is
merely avoiding the issue, not fixing it.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups