Sendmail, procmail and Open BSD

Discussion in 'Server Operation' started by zdarr, Feb 3, 2010.

  1. zdarr

    zdarr New Member

    Hello everybody,

    I'm trying to set up an anti-spam filter on OpenBSD. For that purpose, i use sendmail to transfer mail to procmail, which is gonna do local copy and then relay it to spamd.

    Everything is almost set up, but i'm unable to set up the mail relay between sendmail and procmail.

    Here is my sendmail.mc file :

    VERSIONID(`$Id: openbsd.mc,v 8.12 2002/05/24 09:06:00 sm Exp $')
    OSTYPE(`openbsd')dnl
    DOMAIN(`generic')dnl
    define('PROCMAIL_MAILER_PATH','/usr/local/bin/procmail')dnl
    define('LOCAL_MAILER_ARGS', 'procmail -a $h -d $u')dnl
    FEATURE(`access_db')
    FEATURE(`relay_hosts_only')
    FEATURE(`use_cw_file')
    FEATURE(`local_procmail', `/usr/bin/procmail', `procmail -m /etc/procmailrc')
    FEATURE(`allmasquerade')
    MAILER(`procmail')dnl
    DAEMON_OPTIONS(`Addr=127.0.0.1,Port=8888,Name=MTA')



    and this is the error i get in /var/mail/maillog

    Feb 3 00:06:37 spaminator sendmail[11540]: o12N57UK011540: from=root, size=1134, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
    Feb 3 00:06:37 spaminator sendmail[11540]: o12N57UK011540: to=root, ctladdr=root (0/0), delay=00:01:30, xdelay=00:00:00, mailer=relay, pri=31134, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]



    If anybody have been through this or have any idea, you're welcome. It has been few days i'm working on it and i'm sure i've made a stupid mistake somewhere but i can't find it.

    Here are the logfile for when i start sendmail with this command : sendmail -Am -bd

    Feb 3 00:17:18 spaminator sendmail[11538]: gethostbyaddr(10.8.98.53) failed: 1
    Feb 3 00:17:18 spaminator sendmail[11538]: daemon invoked without full pathname; kill -1 won't work
    Feb 3 00:17:18 spaminator sendmail[26278]: starting daemon (8.14.3): SMTP
     
    Last edited: Feb 3, 2010
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?
     

Share This Page