Hi Andrew

         Thanks a lot... Now the mail are coming to my
queue and i am not seeing any rejectiong of smtp
connection in the maillog. So qmail is sending
the mail without holding those defeffed mails in its
queue.
         But one problem is there . All the mails are
now gathered in the /var/spool/mqueue... No mails are
going to senders...
         So here i am stuck again...........


I have mentioned the sendmail.mc file below:

Thanks again - pl. let me know what to do again for
generating the mails in queue.

Regards.
-Swapna


Andrew Mathews wrote:
| Hi Andrew
|
|    Here is my sendmail.mc file - i am sending
because
| if i missed anything to explain you....
|
|         divert(-1)
|
|         include(`/home/swapna/sendtest/m4/cf.m4')
|         VERSIONID(`linux setup for Red Hat
Linux')dnl
|         OSTYPE(`linux')
|
|         define(`confDEF_USER_ID',``8:12'')dnl

Add       define(`confTRUSTED_USER', `smmsp')dnl here
(And make sure smmsp user exists)

|         undefine(`UUCP_RELAY')dnl
|         undefine(`BITNET_RELAY')dnl

Change these to:dnl (`UUCP_RELAY')dnl & dnl
(`BITNET_RELAY')dnl
unless you're still using uucp and bitnet.

|        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(`confCONNECTION_RATE_THROTTLE',
`50')dnl

Increase this to 75 for now.

|        define(`ALIAS_FILE', `/etc/aliases')dnl
|        define(`UUCP_MAILER_MAX', `2000000')dnl

Change this to dnl (`UUCP_MAILER_MAX', `2000000')dnl
as you don't need it.

|        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

Add your define(`conf DELAY_LA', `0')dnl
and      define(`confREFUSE_LA', `0')dnl
here. (0 disables a max threshhold)

|        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

You probably won't use this right now, set it to:
        dnl FEATURE(`blacklist_recipients')dnl

|        EXPOSED_USER(`root')dnl
|        DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0,
Name=MTA')dnl

Add      DAEMON_OPTIONS(`Port=submission, Name=MSA,
M=Ea')dnl here.
You don't have a submission port defined (port 587) so
everything is
going across port 25 unnecessarily.

|
|        FEATURE(`accept_unresolvable_domains')dnl

Get rid of this one, it's poor security. Set it to:
        dnl FEATURE(`accept_unresolvable_domains')dnl

|
|        MAILER(smtp)dnl
|        MAILER(procmail)dnl
|        Cwlocalhost.localdomain
|
 
Andrew Mathews



HERE IS THE MODIFIED SENDMAIL.MC FILE
__________________________________________

      1 divert(-1)
      2 dnl This is the sendmail macro config file. If
you make changes to this         file,
      3 dnl you need the sendmail-cf rpm installed and
then have to generate a
      4 dnl new /etc/mail/sendmail.cf by running the
following command:
      5 dnl
      6 dnl        m4 /etc/mail/sendmail.mc >
/etc/mail/sendmail.cf
      7 dnl
      8 include(`/home/swapna/sendtest/m4/cf.m4')
      9 VERSIONID(`linux setup for Red Hat Linux')dnl
     10 OSTYPE(`linux')
     11 dnl Uncomment and edit the following line if
your mail needs to be sent         out
     12 dnl through an external mail server:
     13 dnl define(`SMART_HOST',`smtp.your.provider')
     14 define(`confDEF_USER_ID',``8:12'')dnl
     15 dnl undefine(`UUCP_RELAY')dnl
     16 dnl undefine(`BITNET_RELAY')dnl
     17 dnl define(`confAUTO_REBUILD')dnl
     18 define(`confTO_CONNECT', `1m')dnl
     19 define(`confTRY_NULL_MX_LIST',true)dnl
     20 define(`confDONT_PROBE_INTERFACES',true)dnl
     21
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
     22 define(`confCONNECTION_RATE_THROTTLE',
`75')dnl
     23 define(`ALIAS_FILE', `/etc/aliases')dnl
     24 dnl define(`STATUS_FILE',
`/etc/mail/statistics')dnl
     25 dnl define(`UUCP_MAILER_MAX', `2000000')dnl
     26 define(`confUSERDB_SPEC',
`/etc/mail/userdb.db')dnl
     27 define(`confPRIVACY_FLAGS',
`authwarnings,novrfy,noexpn,restrictqrun')dn        l
     28 define(`confAUTH_OPTIONS', `A')dnl
     29 define(`conf DELAY_LA', `0')dnl
     30 define(`confREFUSE_LA', `0')dnl
     31 define(`confQUEUE_SORT_ORDER', `random')dnl
     32 dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5
CRAM-MD5 LOGIN PLAIN')dnl
     33 dnl define(`confAUTH_MECHANISMS', `EXTERNAL
GSSAPI DIGEST-MD5 CRAM-MD5 L        OGIN PLAIN')dnl
     34 dnl
define(`confCACERT_PATH',`/usr/share/ssl/certs')
     35 dnl
define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
     36 dnl
define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
     37 dnl
define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
     38 dnl define(`confTO_QUEUEWARN', `4h')dnl
     39 dnl define(`confTO_QUEUERETURN', `5d')dnl
     40 dnl define(`confQUEUE_LA', `12')dnl
     41 dnl define(`confREFUSE_LA', `18')dnl
     42 define(`confTO_IDENT', `0')dnl
     43 dnl FEATURE(delay_checks)dnl
     44 FEATURE(`no_default_msa',`dnl')dnl
     45 FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
     46 FEATURE(`mailertable',`hash -o
/etc/mail/mailertable.db')dnl
     47 FEATURE(`virtusertable',`hash -o
/etc/mail/virtusertable.db')dnl
     48 FEATURE(redirect)dnl
     49 FEATURE(always_add_domain)dnl
     50 FEATURE(use_cw_file)dnl
     51 FEATURE(use_ct_file)dnl
     52 dnl The '-t' option will retry delivery if
e.g. the user runs over his quota.
     53 FEATURE(local_procmail,`',`procmail -t -Y -a
$h -d $u')dnl
     54 FEATURE(`access_db',`hash -T<TMPF> -o
/etc/mail/access.db')dnl
     55 dnl FEATURE(`blacklist_recipients')dnl
     56 EXPOSED_USER(`root')dnl
     57 dnl This changes sendmail to only listen on
the loopback device 127.0.0.        1
     58 dnl and not on any other network devices.
Comment this out if you want
     59 dnl to accept email over the network.
     60 DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0,
Name=MTA')dnl
     61 DAEMON_OPTIONS(`Port=submission, Name=MSA,
M=Ea')dnl
     62 dnl NOTE: binding both IPv4 and IPv6 daemon to
the same port requires
     63 dnl       a kernel patch
     64 dnl DAEMON_OPTIONS(`port=smtp,Addr=::1,
Name=MTA-v6, Family=inet6')
     65 dnl We strongly recommend to comment this one
out if you want to protect
     66 dnl yourself from spam. However, the laptop
and users on computers that       do
     67 dnl not have 24x7 DNS do need this.
     68 FEATURE(`accept_unresolvable_domains')dnl
     69 dnl FEATURE(`accept_unresolvable_domains')dnl
     70 dnl FEATURE(`relay_based_on_MX')dnl
     71 MAILER(smtp)dnl
     72 MAILER(procmail)dnl
     73 Cwlocalhost.localdomain


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to