Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #356362
    Anonymous
    Participant

    Well after working through issues with the clamav install, I have come to an impass with postfix. When I append the code given in the article to the master.cf file I get errors when attempting to start postfix.
    Here is the code:

    smtp-amavis unix – – y – 2 smtp
    -o smtp_data_done_timeout=1200
    -o disable_dns_lookups=yes
    127.0.0.1:10025 inet n – y – – smtpd
    -ocontent_filter=
    -olocal_recipient_maps=
    -osmtpd_helo_restrictions=
    -osmtpd_client_restrictions=
    -osmtpd_sender_restrictions=
    -omynetworks=127.0.0.0/8

    Sep 5 10:08:58 postal postfix/master[14138]: fatal: /etc/postfix/master.cf: line 109: bad transport type: smtp_data_done_timeout=1200

    This error occurs in different as you comment out the offending lines. So my question is, where in the master.cf file should this code go? I have tried the top, the middle and the bottom. Anyone have any ideas?

    #356689
    Anonymous
    Participant

    Postfix breaks for me also after I save master.cf with this text. Any clues? I’ve copied/pasted from this topic as well as manually typing without success.

    Thanks!

    #356754
    DiscHead
    Participant

    Following the great article on spam/antivirus for Postfix I’ve been able to get the pieces running. However I’m having some delivery problems and after inspecting the mail.log:

    [code:1:2c4a15fe18]
    fatal: unexpected command-line argument: 127.0.0.1:10025
    warning: premature end-of-input on private/smtp-amavis socket while reading input attribute name
    warning: private/smtp-amavis socket: malformed response
    warning: process /usr/libexec/postfix/smtp pid 28271 exit status 1
    warning: /usr/libexec/postfix/smtp: bad command startup — throttling
    to=<[email protected]>, relay=none, delay=40077, status=deferred (mail transport unavailable)
    [/code:1:2c4a15fe18]

    Looks as though Postfix is having issues talking to Amavis. Any ideas?

    #356758
    DiscHead
    Participant

    MacTroll,

    Thank you kindly for your response. I DID have a typo in my master.cf file (even after retyping and double-checking; fat fingers!). You guys are awesome.

    Do you accept donations for all your great articles and sound advice for us budding admins?

    #356777
    Anonymous
    Participant

    Thanks for the how-to!

    This is what I get when I amavisd debug:

    amavisd[18250]: starting. amavisd at [deleted].com amavisd-new-20030616-p2, Unicode aware
    Nov 7 09:18:54 amavisd[18250]: Module Amavis::Conf 1.15
    Nov 7 09:18:54 amavisd[18250]: Module Archive::Tar 1.07
    Nov 7 09:18:54 amavisd[18250]: Module Archive::Zip 1.08
    Nov 7 09:18:54 amavisd[18250]: Module Compress::Zlib 1.31
    Nov 7 09:18:54 amavisd[18250]: Module Convert::TNEF 0.17
    Nov 7 09:18:54 amavisd[18250]: Module Convert::UUlib 0.31
    Nov 7 09:18:54 amavisd[18250]: Module MIME::Entity 5.404
    Nov 7 09:18:54 amavisd[18250]: Module MIME::Parser 5.406
    Nov 7 09:18:54 amavisd[18250]: Module MIME::Tools 5.411
    Nov 7 09:18:54 amavisd[18250]: Module Mail::Header 1.60
    Nov 7 09:18:54 amavisd[18250]: Module Mail::Internet 1.60
    Nov 7 09:18:54 amavisd[18250]: Module Mail::SpamAssassin 2.60
    Nov 7 09:18:54 amavisd[18250]: Module Net::Server 0.85
    Nov 7 09:18:54 amavisd[18250]: Module Unix::Syslog 0.99
    Nov 7 09:18:54 amavisd[18250]: Found myself: /usr/bin/amavisd -c /etc/amavisd.conf
    Nov 7 09:18:54 amavisd[18250]: Lookup::SQL code NOT loaded
    Nov 7 09:18:54 amavisd[18250]: Lookup::LDAP code NOT loaded
    Nov 7 09:18:54 amavisd[18250]: AMCL-in protocol code loaded
    Nov 7 09:18:54 amavisd[18250]: SMTP-in protocol code loaded
    Nov 7 09:18:54 amavisd[18250]: ANTI-VIRUS code loaded
    Nov 7 09:18:54 amavisd[18250]: ANTI-SPAM code loaded
    Nov 7 09:18:54 amavisd[18250]: Net::Server: 2003/11/07-09:18:54 Amavis (type Net::Server::PreForkSimple) starting! pid(18250)
    Nov 7 09:18:54 amavisd[18250]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    Nov 7 09:18:54 amavisd[18250]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    Nov 7 09:18:54 amavisd[18250]: Net::Server: Setting gid to “26 26”
    Nov 7 09:18:54 amavisd[18250]: Net::Server: 2003/11/07-09:18:54 Couldn’t become gid “26” (0)\n\n at line 479 in file /Library/Perl/5.8.1/Net/Server.pm
    Nov 7 09:18:54 amavisd[18250]: Net::Server: 2003/11/07-09:18:54 Server closing!

    #356779
    mtnfin
    Participant

    I’ve come across an issue which I can’t seem to resolve. I’ve been following the article on spam/antivirus controls for Postfix 2 and am having trouble with my installed Perl modules via cpan.

    Following the cpan install portion I get:

    [code:1:79db1cb5a3]clamav% amavisd debug
    dyld: perl multiple definitions of symbol _crc32
    /Library/Perl/darwin/auto/Convert/UUlib/UUlib.bundle definition of _crc32
    /Library/Perl/darwin/auto/Compress/Zlib/Zlib.bundle definition of _crc32
    Trace/BPT trap[/code:1:79db1cb5a3]

    Any idea how to modify the duplicate definitions?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Comments are closed