Virtual Users And Domains With Postfix, Courier, error

Discussion in 'HOWTO-Related Questions' started by hvrossum, Jun 9, 2008.

  1. hvrossum

    hvrossum New Member

    Hi
    Iam trying to add anti spam to my ubuntu server
    Following these steps Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS)

    As I don;t want users mail in an sql file but just in there maildir I started with chapter 9

    But when /etc/init.d/amavis restart
    I get an error response.

    Stopping amavisd: amavisd-new.
    Starting amavisd: Error in config file "/etc/amavis/conf.d/15-content_filter_mode": syntax error at /etc/amavis/conf.d/15-content_filter_mode line 23, near "1;"
    (failed).


    Thet line mentioned I did not change.

    Any ideas how to go about this?


    Thanks
    Harry
     
  2. tonkyman

    tonkyman New Member

    Show us

    Hi Harry,
    Can you show us the contents of the file?? It could be the line before it causing the problem and the system just reports the problem with line 23.

    Spaces, or any stray punctuation will cause you grief.

    Later,
    Tony
     
  3. hvrossum

    hvrossum New Member

    This is what the file looks like

    use strict;

    # You can modify this file to re-enable SPAM checking through spamassassin
    # and to re-enable antivirus checking.

    #
    # Default antivirus checking mode
    # Uncomment the two lines below to enable it back
    #

    @bypass_virus_checks_maps = (
    # \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);


    #
    # Default SPAM checking mode
    # Uncomment the two lines below to enable it back
    #

    @bypass_spam_checks_maps = (
    # \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);

    1; # ensure a defined return
     
  4. tonkyman

    tonkyman New Member

    try this

    This is what mine looks like:

     
  5. hvrossum

    hvrossum New Member

    I used you lines (uncommenting two lines)
    And the restart did not give any error messages

    Thanks
     
  6. tonkyman

    tonkyman New Member

    Cool

    Glad I could help.

    Later,
    Tony
     

Share This Page