Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10)

Discussion in 'HOWTO-Related Questions' started by marmellata, Jan 2, 2010.

  1. marmellata

    marmellata New Member

    Hello, following the above HowTo I was able to set up a postfix mail server. However I have some doubts about spam filtering (amavisd-new, SpamAssassin and ClamAVis) is actually working. Is there a way to be sure they are working? do I also have to port forwarding some other ports on my router in addition to port 25 ?
    The last question is.. do you have an idea why other mail servers always put mail coming from my server in spam folder ?

    Thanks in advance forr your support
  2. falko

    falko Super Moderator

    You should check your mail log and the email headers.

    Port 110 for POP3, port 143 for IMAP, port 993 for IMAPS and port 995 for POP3S.

    Please check if your server is blacklisted:
  3. marmellata

    marmellata New Member

    Thanks for your answer :) as always.
    In squirrelmail looking at email headers it seems to be amavisd is working:
    X-Virus-Scanned: Debian amavisd-new at
    Received: from ([])
    by localhost ( []) (amavisd-new, port 10024)
    with ESMTP id kKkDY7h55hi5 for <>;
    Sun, 3 Jan 2010 19:12:40 +0100 (CET)
    in mail log what should I see? cause I cant see anything about spam filtering process

    amavisd 10024 port?
  4. marmellata

    marmellata New Member

    Sorry but sending from a different mail ( to my inside mail ( actually I've found amavisd works:

    Jan 3 20:13:58 mx postfix/smtpd[4661]: connect from[]
    Jan 3 20:14:01 mx postfix/smtpd[4661]: B4BC722F37:[]
    Jan 3 20:14:04 mx postfix/cleanup[4666]: B4BC722F37: message-id=<99A8F300EA854206A2A7B92DEABADF4C@marmellataLapt>
    Jan 3 20:14:04 mx postfix/qmgr[1508]: B4BC722F37: from=<>, size=1572, nrcpt=1 (queue active)
    Jan 3 20:14:05 mx postfix/smtpd[4661]: disconnect from[]
    Jan 3 20:14:11 mx postfix/smtpd[4672]: connect from localhost[]
    Jan 3 20:14:11 mx postfix/smtpd[4672]: A5A31235CD: client=localhost[]
    Jan 3 20:14:11 mx postfix/cleanup[4666]: A5A31235CD: message-id=<99A8F300EA854206A2A7B92DEABADF4C@marmellataLapt>
    Jan 3 20:14:11 mx postfix/qmgr[1508]: A5A31235CD: from=<>, size=2011, nrcpt=1 (queue active)
    Jan 3 20:14:11 mx postfix/smtpd[4672]: disconnect from localhost[]
    Jan 3 20:14:11 mx amavis[1428]: (01428-04) Passed CLEAN, [] [] <> -> <>, Message-ID: <99A8F300EA854206A2A7B92DEABADF4C@marmellataLapt>, mail_id: Znynqx7wTHmW, Hits: 3.384, size: 1572, queued_as: A5A31235CD, 7143 ms
    Jan 3 20:14:11 mx postfix/smtp[4667]: B4BC722F37: to=<>, relay=[]:10024, delay=11, delays=3.8/0.02/0.01/7.2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01428-04, from MTA([]:10025): 250 2.0.0 Ok: queued as A5A31235CD)
    Jan 3 20:14:11 mx postfix/qmgr[1508]: B4BC722F37: removed
    Jan 3 20:14:11 mx postfix/virtual[4676]: A5A31235CD: to=<>, relay=virtual, delay=0.11, delays=0.04/0.05/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
    Jan 3 20:14:11 mx postfix/qmgr[1508]: A5A31235CD: removed

    .. shouldnt I also see spamassasin and clamav working in mail.log?
  5. falko

    falko Super Moderator

    No, you don't need to open that port as it is accessed only from localhost.

    The logging is done by amavisd:


Share This Page