Home Forums OS X Server and Client Discussion Questions and Answers Spam and Virus Controls with Postfix

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #357305
    Anonymous
    Participant

    I am getting this error. Something must not be set correctly in the main.cf or the master.cf. Is there anyone who can help me with this? My mail server is down.

    Feb 1 12:09:19 server postfix/qmgr[20603]: warning: connect to transport smtp-amavis: Connection refused

    Thank you

    #357307
    Anonymous
    Participant

    Hey Joel,
    Yes, amavisd is running.
    I have entered content_filter=smtp-amavis:[127.0.0.1]:10024 in the main.cf file. Is that all I need to do to main.cf?

    I have entered:
    smtp-amavis unix – – y – 2 smtp
    -o smtp_data_done_timeout=120
    -o disable_dns_lookups=yes

    127.0.0.1:10025 inet n – y – – smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000

    In the master.cf file. Is that all I need to do in master.cf?

    Thanks for the quick reply.

    #357447
    iJak
    Participant

    Hello.

    I, being new to UNIX and Panther server, found the Postfix/SpamAssassin tutorial a little confusing.

    Did you get it running? And could you give me any pointers about how to read the tutorial?

    Jack

    #357458
    Anonymous
    Participant

    I’m getting an error too but mine is:
    “Feb 23 15:30:31 server ntpd_initres[360]: server returns a permission denied error
    Feb 23 15:30:36 server postfix/pickup[18244]: fatal: /etc/postfix/main.cf, line 79: missing ‘=’ after attribute name: “smtp inet n – n – – smtpd””

    I can receive mail (I think). But it hangs while sending. Anyone help please!!

    #357459
    iJak
    Participant

    .

    Specifically, in the amavisd.conf configuration section at the end of part 3 of the instructions, what should I change? And not change?

    In the of the Part 3 instructions, it says. …
    [quote:848850b058]You’ll also want to take a look at where the spam and virus notifications go. This file defines the spam and virus policies on your mail server. Let me say that again to make sure you understand. This file determines all of your spam and virus policies. As such you really should spend some time looking it over so that you don’t embarrass yourself later.[/quote:848850b058]

    Now, I sure as heck do not want to embarrass myself, but I have looked at this for a day or so, and I still am not sure what the important parts that apply to me and my server are? … Any suggestions?

    Jack

    #357484
    iJak
    Participant

    .
    Well I got as far as the end of part four, but the result was an unsatisfying … “Server closing!” Instead of, “Parent ready for children.”

    [code:1:26636f8597][myDomain:/Users/jack] clamav% amavisd debug
    Feb 24 21:56:34 myDomain.com amavisd[10102]: starting. amavisd at myDomain.com amavisd-new-20030616-p7, Unicode aware
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Perl version 5.008001
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Amavis::Conf 1.15
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Archive::Tar 1.08
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Archive::Zip 1.09
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Compress::Zlib 1.33
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Convert::TNEF 0.17
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Convert::UUlib 1.0
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module MIME::Entity 5.404
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module MIME::Parser 5.406
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module MIME::Tools 5.411
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Mail::Header 1.60
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Mail::Internet 1.60
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Mail::SpamAssassin 2.63
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Net::Cmd 2.24
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Net::SMTP 2.26
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Net::Server 0.87
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Time::HiRes 1.55
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Module Unix::Syslog 0.99
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Found myself: /usr/bin/amavisd -c /etc/amavisd.conf
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Lookup::SQL code NOT loaded
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Lookup::LDAP code NOT loaded
    Feb 24 21:56:34 myDomain.com amavisd[10102]: AMCL-in protocol code loaded
    Feb 24 21:56:34 myDomain.com amavisd[10102]: SMTP-in protocol code loaded
    Feb 24 21:56:34 myDomain.com amavisd[10102]: ANTI-VIRUS code loaded
    Feb 24 21:56:34 myDomain.com amavisd[10102]: ANTI-SPAM code loaded
    Feb 24 21:56:34 myDomain.com amavisd[10102]: Net::Server: 2004/02/24-21:56:34 Amavis (type Net::Server::PreForkSimple) starting! pid(10102)
    Feb 24 21:56:35 myDomain.com amavisd[10102]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    Feb 24 21:56:35 myDomain.com amavisd[10102]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    Feb 24 21:56:35 myDomain.com amavisd[10102]: Net::Server: 2004/02/24-21:56:35 No such group "sweep"\n\n at line 409 in file /Library/Perl/5.8.1/Net/Server.pm
    Feb 24 21:56:35 myDomain.com amavisd[10102]: Net::Server: 2004/02/24-21:56:35 Server closing!
    [myDomain:/Users/jack] clamav%
    [/code:1:26636f8597]

    Where do I go from here?

    #357502
    iJak
    Participant

    This is an image of what is in line 409 of the server.pm file

    Where do I go to fix the group? Which is the error in my previous message.

    [img:6fac61e869]http://www.wwpp.org/users/0000016/images/2004/02/25/serverDOTpmLine409.jpg[/img:6fac61e869]

    #357515
    iJak
    Participant

    There are a lot of problems in here. …

    My Activity monitor is showing this most active when this happens.

    [code:1:0886a5f8f5]2054 servermgr_info root 68.00 1 6.38 MB 62.64 MB[/code:1:0886a5f8f5]

    These two images are what is the Activity Monitor says is going on with the disk when that happens.

    The second image is 30 seconds after the first.

    [img:0886a5f8f5]http://www.wwpp.org/users/0000028/images/2004/02/26/AMonitor01.jpg[/img:0886a5f8f5]
    [img:0886a5f8f5]http://www.wwpp.org/users/0000028/images/2004/02/26/AMonitor02.jpg[/img:0886a5f8f5]

    My disk space is being slowly gobbled away and will be gone soon.

    1.) I want to delete the old used space. Where do I get this build up stopped.
    2.)Then I want to correct the problem.

    Initially it started by trying to use the information on “Spam and Virus Controls with Postfix” article on this page install, which obviously went screwey somewhere. Now I don’t care. I just want my machine to work.

    These are the errors I see in my Server Monitor Mail log : SMTP

    [code:1:0886a5f8f5]Feb 26 10:00:06 myDomain postfix/smtp[2802]: warning: host http://www.myDomain.com[11.11.11.11(not my real ip#)] greeted me with my own hostname myDomain.com
    Feb 26 10:00:06 myDomain postfix/smtp[2802]: warning: host http://www.myDomain.com[11.11.11.11(not my real ip#)] replied to HELO/EHLO with my own hostname myDomain.com
    Feb 26 10:00:27 myDomain postfix/qmgr[822]: warning: connect to transport smtp-amavis: No such file or directory
    Feb 26 10:01:27 myDomain postfix/qmgr[822]: warning: connect to transport smtp-amavis: No such file or directory
    Feb 26 10:03:27 myDomain last message repeated 2 times
    Feb 26 10:13:27 myDomain last message repeated 10 times
    Feb 26 10:23:27 myDomain last message repeated 10 times[/code:1:0886a5f8f5]

    Where is it trying to connect to smpt-amavis? And how do I disconnect that request?

    The Console is reporting this error all the time.
    [code:1:0886a5f8f5]Feb 26 09:29:38 myDomainName pop3d[2314]: auxpropfunc error -1
    Feb 26 09:29:53 myDomainName lmtpd[2323]: auxpropfunc error -1
    Feb 26 09:31:15 myDomainName lmtpd[2329]: auxpropfunc error -1
    Feb 26 09:34:44 myDomainName lmtpd[2406]: auxpropfunc error -1
    Feb 26 09:38:26 myDomainName lmtpd[2451]: auxpropfunc error -1
    Feb 26 09:44:38 myDomainName lmtpd[2565]: auxpropfunc error -1
    Feb 26 09:48:57 myDomainName lmtpd[2607]: auxpropfunc error -1
    Feb 26 09:56:27 myDomainName lmtpd[2732]: auxpropfunc error -1
    Feb 26 10:00:03 myDomainName lmtpd[2801]: auxpropfunc error -1
    Feb 26 10:01:57 myDomainName lmtpd[2830]: auxpropfunc error -1
    Feb 26 10:05:16 myDomainName lmtpd[2883]: auxpropfunc error -1
    Feb 26 10:07:15 myDomainName lmtpd[2911]: auxpropfunc error -1
    Feb 26 10:11:19 myDomainName lmtpd[2978]: auxpropfunc error -1
    Feb 26 10:14:10 myDomainName lmtpd[3010]: auxpropfunc error -1
    Feb 26 10:17:13 myDomainName lmtpd[3074]: auxpropfunc error -1
    Feb 26 10:21:18 myDomainName lmtpd[3141]: auxpropfunc error -1
    Feb 26 10:22:58 myDomainName lmtpd[3164]: auxpropfunc error -1
    Feb 26 10:24:56 myDomainName lmtpd[3212]: auxpropfunc error -1
    Feb 26 10:29:20 myDomainName lmtpd[3272]: auxpropfunc error -1
    Feb 26 10:29:38 myDomainName imapd[3291]: auxpropfunc error -1
    Feb 26 10:29:38 myDomainName pop3d[3292]: auxpropfunc error -1
    Feb 26 10:30:24 myDomainName lmtpd[3296]: auxpropfunc error -1
    Feb 26 10:31:28 myDomainName lmtpd[3304]: auxpropfunc error -1
    Feb 26 10:32:28 myDomainName pop3d[3306]: auxpropfunc error -1
    Feb 26 10:33:12 myDomainName lmtpd[3325]: auxpropfunc error -1
    Feb 26 10:37:21 myDomainName lmtpd[3393]: auxpropfunc error -1
    Feb 26 10:45:13 myDomainName lmtpd[3532]: auxpropfunc error -1
    Feb 26 10:45:46 myDomainName pop3d[3533]: auxpropfunc error -1
    Feb 26 10:46:19 myDomainName lmtpd[3541]: auxpropfunc error -1
    Feb 26 10:50:14 myDomainName lmtpd[3606]: auxpropfunc error -1
    Feb 26 10:52:49 myDomainName lmtpd[3632]: auxpropfunc error -1
    Feb 26 10:55:43 myDomainName lmtpd[3702]: auxpropfunc error -1
    Feb 26 11:00:03 myDomainName lmtpd[3772]: auxpropfunc error -1
    Feb 26 11:02:21 myDomainName lmtpd[3802]: auxpropfunc error -1
    Feb 26 11:09:23 myDomainName pop3d[3900]: auxpropfunc error -1
    Feb 26 11:16:54 myDomainName lmtpd[4016]: auxpropfunc error -1 [/code:1:0886a5f8f5]

    So. … I need a little help. Please.
    Jack

    #357595
    OsX4me
    Participant

    So did everyone get all this working in the end ?

    I’m reading up & preparing to implement

    clamav & amavisd-new on OS X Server 10.3

    but this thread makes me have second-thoughts (and more)

    #357610
    carl
    Participant

    OsX4me,

    I don’t think the thread just stopped, and I doubt that EVERYONE got it working properly. I’m in the process of installing it (that’s why I came here), and I’ve had VERY few problems (cudos to the author!!!!). The one problem I did encounter was already discussed in this thread (white space before the -o options).

    Try it! (that’s your encouragement) Then if you have problems, let everyone know and they’ll probably be able to help you out.

    I’ll write more if I have more problems … not to dicsourage you, but to educate you in case you encounter the same problems.

    Carl Ketterling
    Thursby Software Systems, Inc.

    #357616
    carl
    Participant

    All seems to work! I want to go through the settings files to completely understand what’s happening, but I wanted to add that it is complete and working. Thank you all!

    #357634
    Anonymous
    Participant

    Thanks to afp548.com, I’ve had clamav running since I installed 10.3 and I was an early adopter.

    There is one thing that is not working, though. If I restart my server, I have to login as clamav and start amavisd and freshclam by hand. The article says I should add a couple lines to an existing startup item, but I don’t know how to do this. Also, I think there is a typo -1 or -l.

    Can anyone provide more detail about this final procedure?

    #357657
    OsX4me
    Participant

    For startup items, you can go with this, BUT as Apple says, this method is now deprecated: http://developer.apple.com/documentation/macosx/Conceptual/BPSystemStartup/index.html

    They point you to this instead:

    http://developer.apple.com/documentation/macosx/Conceptual/BPSystemStartup/index.html

    So, I will try this on a test server tomorrow with any luck.

    If I understand it, – as root – I’ll cd to /etc/mach_init.d
    and create, first, the file amavisd.plist with content:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd&#8221;
    >

    <plist version=”1.0″>
    <dict>
    <key>ServiceName</key>
    <string>com.apple.Amavisd.configd</string>
    <key>Command</key>
    <string>su clamav -c amavisd</string>
    <key>OnDemand</key>
    <true/>
    </dict>
    </plist>

    and then the file FreshClam.plist with content:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd&#8221;
    >

    <plist version=”1.0″>
    <dict>
    <key>ServiceName</key>
    <string>com.apple.FreshClam.configd</string>
    <key>Command</key>
    <string>freshclam -d -c 2 -1 /var/log/clam-update.log</string>
    <key>OnDemand</key>
    <true/>
    </dict>
    </plist>

    Apple says the default for <key>OnDemand</key> is true,
    I don’t know if this means that we’ll end up spawning more processes than we actually want…

    But doing things this way, says Apple, is far more efficient than the old way for 10.2 (working with /System/Library/StartupItems

    Well, for something that’s “deprecated” there sure is ALOT of items still put in the StartupItems folder by Apple.

    Failing this new way they describe, I’ll try the old way.

    will get to this tomorrow if i can

    #357681
    carl
    Participant

    I tried the new pList, but it didn’t work (of course, I’m not really sure what I’m doing). I tried the ‘depreciated’ way to make a startup item, and that appears to have worked.

    I created /Library/StartupItems directory.
    I copied the Apache directory from /System/Library/StartupItems to /Library/StartupItems.
    I renamed the copied directory to ClamAV.
    Then I edited all of the files replacing Apache with ClamAV.

    When I was done, I rebooted and saw the system say “Starting ClamAV” (which is one of the lines in the startup script. And the process appears to be running.

    Carl

    #357734
    iztech
    Participant

    ello i got stuck at step 5 while installing perl modules with cpan.

    i noticed a comment on lwp…

    here’s what i get when i try the avmisvid debug at the prompt.

    ERROR: MISSING REQUIRED BASIC MODULES:
    IO::Wrap
    IO::Stringy
    Unix::Syslog
    Mail::Field
    Mail::Address
    Mail::Header
    Mail::Internet
    MIME::Words
    MIME::Head
    MIME::Body
    MIME::Entity
    MIME::Parser
    Net::Server
    Net::Server::PreForkSimple
    MIME::Decoder::Base64
    MIME::Decoder::Binary
    MIME::Decoder::Gzip64
    MIME::Decoder::NBit
    MIME::Decoder::QuotedPrint
    MIME::Decoder::UU
    BEGIN failed–compilation aborted at /usr/bin/amavisd line 128.

    please help i feel like i got really close.

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

Comments are closed