Find the answer to your Linux question:
Results 1 to 2 of 2
I've set up a sendmail server using the mc file below. The current configuration is supposed to speed up our bulk mailing system however some email accounts receives multiple copies ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    1

    sendmail configuration problem


    I've set up a sendmail server using the mc file below. The current configuration is supposed to speed up our bulk mailing system however some email accounts receives multiple copies of the same message. Here's the mc files contents:

    include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
    VERSIONID(`setup for Red Hat Linux')dnl
    OSTYPE(`linux')dnl
    nl define(`confLOG_LEVEL', `9')dnl
    define(`confDEF_USER_ID',``8:12'')dnl
    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/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
    dnl define(`confAUTH_OPTIONS', `A p')dnl
    dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')
    dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
    dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
    dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
    dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekey file')dnl
    dnl define(`QUEUE_DIR', `/var/spool/mqueue')dnl
    QUEUE_GROUP(`local', `P=/var/spool/mqueue/local, F=f, R=2, I=30s')dnl
    QUEUE_GROUP(`somedomainA', `P=/var/spool/mqueue/somedomainA, F=f, r=90, R=10, I=4m')dnl
    QUEUE_GROUP(`somedomainB', `P=/var/spool/mqueue/somedomainB, F=f, r=90, R=14, I=5m')dnl
    QUEUE_GROUP(`somedomainC', `P=/var/spool/mqueue/somedomainC, F=f, r=90, R=14, I=2m')dnl
    QUEUE_GROUP(`remote', `P=/var/spool/mqueue/remote, F=f, r=99, R=10, I=8m')dnl

    define(`ESMTP_MAILER_QGRP', `remote')dnl
    define(`confSPLIT_ACROSS_QUEUEGROUPS', `True')dnl
    define(`confDELIVERY_MODE', `q')dnl
    define(`confMAX_QUEUE_CHILDREN', `50')dnl
    define(`confMIN_QUEUE_AGE', `27m')dnl
    dnl define(`confTO_QUEUEWARN', `1h')dnl
    dnl define(`confTO_QUEUERETURN', `2h')dnl
    dnl define(`confQUEUE_LA', `24')dnl
    dnl define(`confREFUSE_LA', `18')dnl

    define(`confTO_IDENT', `0')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.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
    dnl define(`confMAX_DAEMON_CHILDREN', 20)dnl
    dnl define(`confCONNECTION_RATE_THROTTLE', 3)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
    dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
    dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
    dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
    dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
    dnl FEATURE(`relay_based_on_MX')dnl
    LOCAL_DOMAIN(`localdomain')dnl
    MAILER(smtp)dnl
    MAILER(procmail)dnl
    LOCAL_RULESETS
    Squeuegroup
    R$* localhost.localdomain $# local
    R$* $* somedomainA.com $# somedomainA
    R$* $* somedomainB.com $# somedomainB
    R$* $* somedomainC.com $# somedomainC
    R$* $* $# remote
    R$* $# mqueue
    In my mqueue directory I've created folder for somedomainA, somedomainB, somedomainC, local and remote. I've highlighted the lines which i think could be the possible problem areas of the setup. Sendmail gurus can you guys help me on this one? Thanks in advance

  2. #2
    Banned
    Join Date
    Feb 2010
    Posts
    31

    .procmailrc

    Just add this to your .procmailrc file:
    :0 Wh: msgid.lock
    | formail -D 8192 msgid.cache

Posting Permissions

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