Find the answer to your Linux question:
Results 1 to 2 of 2
My sendmail is gernerating email internet headers that are being rejected as spam. I need to reconfigure my sendmail.mc but I am not sure where to start. I believe I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    1

    Red face sendmail generates headers that are rejected


    My sendmail is gernerating email internet headers that are being rejected as spam. I need to reconfigure my sendmail.mc but I am not sure where to start.

    I believe I am being rejected because I am sending the email as "dbdev@localhost" (which is the account for the database/application) and it does not match the reply to which is "lab-australia@idexx.com" on two account: 1 different user and 2 different domain. I also think there are issues with the email being relayed from the application server (kestrel) to the email server (taz). Is there anyway I can make this relay transparent?

    Example Internet header:
    Received: from kestrel.idexxi.com.au (AUSTRALIA1 [192.168.224.50]) by taz.westbrook.idexxi.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
    id KJH90RXZ; Thu, 4 May 2006 18:28:34 -0400
    Received: (from dbdev@localhost)
    by kestrel.idexxi.com.au (AIX5.3/8.11.6p2/8.11.0) id k44MSQT405556;
    Fri, 5 May 2006 08:28:26 +1000
    Date: Fri, 5 May 2006 08:28:26 +1000
    Message-Id: <200605042228.k44MSQT405556@kestrel.idexxi.com.a u>
    From: lab-australia@idexx.com
    Subject: TST-604271I: TEST, FLUFFY
    To: matthew-nielsen@idexx.com
    Mime-Version: 1.0


    Example sendmail.mc
    include(`/usr/share/sendmail-cf/m4/cf.m4')
    VERSIONID(`linux setup for Red Hat Linux')dnl
    OSTYPE(`linux')
    define(`confDEF_USER_ID',``8:12'')dnl
    undefine(`UUCP_RELAY')dnl
    undefine(`BITNET_RELAY')dnl
    define(`confAUTO_REBUILD')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/sendmail.st')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(`SMART_HOST', `taz.idexxi.com.au')dnl
    dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    dnl define(`confTO_QUEUEWARN', `4h')dnl
    dnl define(`confTO_QUEUERETURN', `5d')dnl
    dnl define(`confQUEUE_LA', `12')dnl
    dnl define(`confREFUSE_LA', `18')dnl
    dnl FEATURE(delay_checks)dnl
    FEATURE(`no_default_msa',`dnl')dnl
    FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
    FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
    FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
    FEATURE(`masquerade_entire_domain')
    FEATURE(redirect)dnl
    FEATURE(always_add_domain)dnl
    FEATURE(use_cw_file)dnl
    FEATURE(use_ct_file)dnl
    FEATURE(local_procmail)dnl
    FEATURE(`access_db')dnl
    FEATURE(`blacklist_recipients')dnl
    MASQUERADE_AS(idexx.com)dnl
    MASQUERADE_DOMAIN(idexxi.com.au)dnl
    MASQUERADE_DOMAIN(localhost)dnl
    FEATURE(masquerade_envelope)dnl
    EXPOSED_USER(`root')dnl
    dnl This changes sendmail to only listen on the loopback device 127.0.0.1
    dnl and not on any other network devices. Comment this out if you want
    dnl to accept email over the network.
    dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
    dnl We strongly recommend to comment this one out if you want to protect
    dnl yourself from spam. However, the laptop and users on computers that do
    dnl not have 24x7 DNS do need this.
    dnl FEATURE(`accept_unresolvable_domains')dnl
    dnl FEATURE(`relay_based_on_MX')dnl
    MAILER(smtp)dnl
    MAILER(procmail)dnl

    Any help would be greatly appreciated.
    Thanks Matt Nielsen

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,917
    I think you need to add:

    Code:
    define (`confDOMAIN_NAME',`idexx.com')dnl
    up near the start somewhere. The actual domain needs to be the same as the domain name from reverse lookups to get past anti-spam software.

    If you do this, you'd probably need to change to:
    Code:
    MASQUERADE_AS(idexxi.com.au)dnl
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •