BUT I am still having issues sending/receiving email! Not necessarily internally, but when the Scalix instance on port 25 picks up an email, it handles it as it should, then it gets to that SMTPFILTER=TRUE command and so it goes over to my sendmail which runs clamav on it, then mailwasher on it.
So I see it in maillog, I see it all looking great...... BUT THAT'S IT! Oh drat... it goes through everything, headers are updated as they should be, everything is great. But sendmail puts it into /var/spool/mail/$user. So Scalix never gets the message back....
SO, below is my sendmail.mc (and yes I grep Scalix in sendmail.cf and it is there). Also, my sendmail and scalix are harmonious as far as lsof -i:25 reports. Also included below is my smtpd.cfg.
Now, a side note. I have three domains.... one internal (mydomain.local) and two external (mylongdomain.com and mydomain.com) but only one server and so I need to accept all three domains and masquarade as mylongdomain.com. I know... it was a dumb decision made in 1996 to have that long domain name and now we can't get away from it!
So without further ado: sendmail.mc: (note: I've tried it with and without the MAILER(procmail))
Code: Select all
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confLOG_LEVEL', `9')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
LOCAL_DOMAIN(`localhost.localdomain')
LOCAL_DOMAIN(`mydomain.local')
LOCAL_DOMAIN(`mylongdomain.com')
LOCAL_DOMAIN(`mydomain.com')
MASQUERADE_AS(`mylongdomain.com')
FEATURE(masquerade_envelope)
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
MASQUERADE_DOMAIN(mydomain.local)dnl
MASQUERADE_DOMAIN(mydomain.com)dnl
MASQUERADE_DOMAIN(mylongdomain.com)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(scalix)dnl
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamav/milter/clamav-milter.sock, F=T, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')dnl
INPUT_MAIL_FILTER(`mailwasher_server', `S=unix:/var/run/mwserver/mpd.sock, F=T, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `mailwasher_server')dnl
And here's my smtpd.cfg:
Code: Select all
EXTENSIONS=AUTH,DSN,8BITMIME
LOCAL_NAMES=thishost.mydomain.local
LOCAL_NAMES=mail.mydomain.local
LOCAL_NAMES=mail.mylongdomain.com
LOCAL_NAMES=mail.mydomain.com
LOCAL_NAMES=mydomain.local
LOCAL_NAMES=mylongdomain.com
LOCAL_NAMES=mydomain.com
SMTP=ON
SUBMIT=OFF
RELAY Log_Accept 127.0.0.1
RELAY Log_Accept mail.mydomain.local
RELAY Log_Accept thishost.mydomain.local
RELAY Log_Accept mylongdomain.com
RELAY Log_Accept mydomain.com
RELAY Log_Reject ALL
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*
AUTH_SUCCESS Header .mydomain.local
AUTH_SUCCESS Accept ALL
AUTH_MISMATCH Log_Header LOCAL
AUTH_MISMATCH Log_Header ALL
SMTPFILTER=TRUE
[SUBMIT]
[LMTP]
Hopefully that gives enough info to at least get us started. if you want my rediculously long maillog, I'll let you have it... but I promise it's nothing different from my old sendmail server that was flawless... ok... close to flawless.
Oh yeah, and I am running this on a Fedora 5, Pentium 4, 1.5GB RAM, and lots of disk space.... it was a great desktop til it was replaced.
Any and all help is not only appreciated, it is very much needed!