Sendmail help Part 1

angelo l angelohl at hotmail.com
Fri May 13 21:35:56 UTC 2005


======THE CONFIGURATION====(in two parts)

         *==Internet==*
               |
               |
         ______|____________________
         |  Firewall                |
         |21 open to 116.168.1.2    |
         |22 open to 116.168.1.2    |
         |25 open to 116.168.1.2    |
         |80 open to 116.168.1.2    |
         |110 open to 116.168.1.2   |
         |113 open to 116.168.1.2   |
         |__________________________|
               |
         ______|_______________________________
         |  Server                             |
         |Eth0 (116.168.1.2)                   |
         |  (iptables - ipv4 fowarding enabled)|
         |Eth1 (10.12.1.1)                     |
         |_____________________________________|

1) I can ping th===========THE PROBLEM=============e address from eth0 to 
eth1 and vice versa with no problem, internet access from addresses on the 
eth1 subnet is no problem either.
2) On the server the only files I have edited are listed here (verbatim):

***/etc/mail/sendmail.cw contains:
mail

***/etc/mail/sendmail.mc contains:
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')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(`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(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')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(`smmsp')dnl
FEATURE(`relay_based_on_MX')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`mydomainname.com')dnl
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

***/etc/mail/access contains:
localhost.localdomain		RELAY
localhost			RELAY
127.0.0.1			RELAY
116.168.1.2			RELAY
mydomainname.com			RELAY
# mail.mydomainname.com			RELAY
cyberpromo.com			REJECT
spam at buyme.com			550 Spammers shan't see sunlight here

***/etc/hosts
127.0.0.1	localhost.localdomain	localhost
#116.168.1.2	mail.mydomainname.com		mail

***/etc/mail/local-host-names contains:
localhost
localhost.localdomain
server1.mydomainname.com


***/etc/named.conf contains:
controls {
        inet 127===========THE PROBLEM=============.0.0.1 allow { localhost; 
} keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";

zone  "0.0.127.in-addr.arpa" {
	type master;
	file  "0.0.127.in-addr.arpa.zone";
};
zone  "1.168.116.in-addr.arpa" {
	type master;
	file  "1.168.116.in-addr.arpa.zone";
};
zone  "localhost" {
	type master;
	file  "localhost.zone";
};
zone  "mydomainname.com" {
	type master;
	file  "mydomainname.com.zone";
};





More information about the redhat-list mailing list