Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 3rd February 2010, 01:09
zdarr zdarr is offline
Junior Member
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sendmail, procmail and Open BSD

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 $')
define('LOCAL_MAILER_ARGS', 'procmail -a $h -d $u')dnl
FEATURE(`local_procmail', `/usr/bin/procmail', `procmail -m /etc/procmailrc')
DAEMON_OPTIONS(`Addr=,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=<201002022305.o12N57UK011540@spaminator.spam inator.local>, 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=[] [], dsn=4.0.0, stat=Deferred: Connection refused by []

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( 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 by zdarr; 3rd February 2010 at 01:19. Reason: Adding log
Reply With Quote
Sponsored Links
Old 3rd February 2010, 16:09
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

What's the output of
netstat -tap
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My postfix server is beeing used to send large ammounts of spam. bob808 Server Operation 2 27th April 2009 13:37
can't receive mail from outgoing postfix nmy Server Operation 4 26th October 2008 16:04
procmail issues with spamassassin kevinbhawkins Installation/Configuration 1 7th September 2008 18:07

All times are GMT +2. The time now is 23:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.