<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: mailscanner+sendmail+exchange problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Well I kinda hacked it...</FONT>
</P>

<P><FONT SIZE=2>I setup my linux machine in the internet (from who I send the mails) that my smtp agent is my mailscanner machine, so it sends the mails to that machine.</FONT></P>

<P><FONT SIZE=2>In my mailscanner machine I added in my sendmail's access file : company.com&nbsp;&nbsp;&nbsp; RELAY</FONT>
</P>

<P><FONT SIZE=2>So it relays the mails to my exchange server.</FONT>
</P>

<P><FONT SIZE=2>My sendmail.mc : </FONT>
</P>
<BR>

<P><FONT SIZE=2>divert(-1)dnl</FONT>
<BR><FONT SIZE=2>include(`/usr/share/sendmail-cf/m4/cf.m4')dnl</FONT>
<BR><FONT SIZE=2>VERSIONID(`setup for Red Hat Linux')dnl</FONT>
<BR><FONT SIZE=2>OSTYPE(`linux')dnl</FONT>
<BR><FONT SIZE=2>define(`confDEF_USER_ID',``8:12'')dnl</FONT>
<BR><FONT SIZE=2>define(`confTRUSTED_USER', `smmsp')dnl</FONT>
<BR><FONT SIZE=2>dnl define(`confAUTO_REBUILD')dnl</FONT>
<BR><FONT SIZE=2>define(`confTO_CONNECT', `1m')dnl</FONT>
<BR><FONT SIZE=2>define(`confTRY_NULL_MX_LIST',true)dnl</FONT>
<BR><FONT SIZE=2>define(`confDONT_PROBE_INTERFACES',true)dnl</FONT>
<BR><FONT SIZE=2>define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl</FONT>
<BR><FONT SIZE=2>define(`ALIAS_FILE', `/etc/aliases')dnl</FONT>
<BR><FONT SIZE=2>dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl</FONT>
<BR><FONT SIZE=2>define(`UUCP_MAILER_MAX', `2000000')dnl</FONT>
<BR><FONT SIZE=2>define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl</FONT>
<BR><FONT SIZE=2>define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl</FONT>
<BR><FONT SIZE=2>define(`confAUTH_OPTIONS', `A')dnl</FONT>
<BR><FONT SIZE=2>define(`confTO_IDENT', `0')dnl</FONT>
<BR><FONT SIZE=2>dnl FEATURE(delay_checks)dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`no_default_msa',`dnl')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`smrsh',`/usr/sbin/smrsh')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(redirect)dnl</FONT>
<BR><FONT SIZE=2>FEATURE(always_add_domain)dnl</FONT>
<BR><FONT SIZE=2>FEATURE(use_cw_file)dnl</FONT>
<BR><FONT SIZE=2>FEATURE(use_ct_file)dnl</FONT>
<BR><FONT SIZE=2>FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`access_db',`hash -T&lt;TMPF&gt; -o /etc/mail/access.db')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`blacklist_recipients')dnl</FONT>
<BR><FONT SIZE=2>LOCAL_DOMAIN(`localhost.localdomain')dnl</FONT>
</P>
<BR>

<P><FONT SIZE=2>FEATURE(`dnsbl',`list.dnsbl.org')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`dnsbl',`bl.spamcop.net')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`dnsbl',`sbl.spamhaus.org')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`dnsbl',`blackholes.mail-abuse.org')dnl</FONT>
<BR><FONT SIZE=2>FEATURE(`dnsbl',`relays.mail-abuse-org')dnl</FONT>
</P>
<BR>

<P><FONT SIZE=2>FEATURE(masquerade_entire_domain)dnl</FONT>
<BR><FONT SIZE=2>MASQUERADE_DOMAIN(localhost)dnl</FONT>
<BR><FONT SIZE=2>MASQUERADE_DOMAIN(localhost.localdomain)dnl</FONT>
<BR><FONT SIZE=2>MASQUERADE_DOMAIN(mydomainalias.com)dnl</FONT>
<BR><FONT SIZE=2>MASQUERADE_DOMAIN(mydomain.lan)dnl</FONT>
<BR><FONT SIZE=2>MAILER(procmail)dnl</FONT>
<BR><FONT SIZE=2>MAILER(smtp)dnl</FONT>
<BR><FONT SIZE=2>dnl MAILER(local)dnl</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Ugo Bellavance [<A HREF="mailto:ugob@CAMO-ROUTE.COM">mailto:ugob@CAMO-ROUTE.COM</A>] </FONT>
<BR><FONT SIZE=2>Sent: quarta-feira, 17 de Março de 2004 11:57</FONT>
<BR><FONT SIZE=2>To: MAILSCANNER@JISCMAIL.AC.UK</FONT>
<BR><FONT SIZE=2>Subject: Re: mailscanner+sendmail+exchange problem</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Message d'origine-----</FONT>
<BR><FONT SIZE=2>De : Paulo Roncon [<A HREF="mailto:paulo-m-roncon@PTINOVACAO.PT">mailto:paulo-m-roncon@PTINOVACAO.PT</A>]</FONT>
<BR><FONT SIZE=2>Envoyé : 17 mars, 2004 06:43</FONT>
<BR><FONT SIZE=2>À : MAILSCANNER@JISCMAIL.AC.UK</FONT>
<BR><FONT SIZE=2>Objet : mailscanner+sendmail+exchange problem</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hello,</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; I'm trying to set up a sendmail+mailscanner box (PC1)&nbsp; that will relay mail to a exchange box(PC2).</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; Now, i've set up sendmail and mailscanner without problems.</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; When i send a mail to a user in PC1 it works fine : I get the mail with information from mailscanner. </FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; When i send a mail to PC2 the mail is relayed without (it seems) beying filtered by mailscanner.</FONT>
</P>

<P><FONT SIZE=2>Any help would be apprecied. </FONT>
</P>

<P><FONT SIZE=2>&lt;UB&gt;</FONT>
<BR><FONT SIZE=2>More info would be appreciated.&nbsp; From where to you send those mails? From what account to what account?&nbsp; Network setup?&nbsp; Are all those boxes on the same subnet? </FONT></P>

<P><FONT SIZE=2>Please avoid HTML in posts.</FONT>
</P>

<P><FONT SIZE=2>Ugo</FONT>
</P>

</BODY>
</HTML>