🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3535

Sendmail broken - or my setup...

#3535
From: Anthony White
Date: Wed, 05 Apr 2000 00:00
167 lines
5827 bytes
WARNING: Long post, has lots of debug info
+=============================================+

Hi from a frustrated sendmail user...

I have had a frustrating problem haunt me for weeks now.

The problem can be seen below.  Comments have been added between the
lines
in the debug output

First run the command to give the output...

   /usr/lib/sendmail -v -q

Output...

   Running QAA07616 (sequence 2 of 2)
   ... Connecting to mail.guestmail.net. via esmtp...
   220 mail.guestmail.net ESMTP Sendmail 8.9.3/8.9.3; Wed,
   5 Apr 2000 07:51:26 +0800 (CST)
   >>> EHLO netserv.my_domain.au

First question, why does my EHLO reply give "netserv.my_domain"
when the server is set up as "mail.my_domain"?

   250-mail.guestmail.net Hello my_domain [link_IP_address]
   (may be forged), pleased to meet you
   250-EXPN
   250-VERB
   250-8BITMIME
   250-SIZE
   250-DSN
   250-ONEX
   250-ETRN
   250-XUSR
   250 HELP
   >>> MAIL From: SIZE=185

Second question, why does my "MAIL From" show SIZE=185 rather than the
origen?

   451 ... Sender domain must resolve
   ... Deferred: 451 ... Sender domain must resolve
   Closing connection to mail.guestmail.net.
   >>> QUIT
   221 mail.guestmail.net closing connection

The "sendmail.mc file" used to generate the "sendmail.cf".

   divert(-1)
   dnl
   dnl Lots of info about the m4 process...
   dnl
   include(`/usr/lib/sendmail-cf/m4/cf.m4')
   define(`confDEF_USER_ID',``8:12'')
   OSTYPE(`linux')
   undefine(`UUCP_RELAY')
   undefine(`BITNET_RELAY')
   define(`confAUTO_REBUILD')
   define(`confTO_CONNECT', `1m')
   define(`confTRY_NULL_MX_LIST',true)
   define(`confDONT_PROBE_INTERFACES',true)
   define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
   FEATURE(`smrsh',`/usr/sbin/smrsh')
   FEATURE(mailertable)
   FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
   FEATURE(redirect)
   FEATURE(always_add_domain)
   FEATURE(use_cw_file)
   FEATURE(local_procmail)
   MAILER(procmail)
   MAILER(smtp)
   FEATURE(`access_db')
   FEATURE(`blacklist_recipients')
   MASQUERADE_AS(`my_domain')
   MASQUERADE_DOMAIN(`my_domain')
   FEATURE(masquerade_entire_domain)
   FEATURE(masquerade_envelope)
   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 hav 24x7 DNS do need this.
   dnl FEATURE(`accept_unresolvable_domains')dnl *removed by AW...
   dnl FEATURE(`relay_based_on_MX')


Some tests that have been done:
-------------------------------

Our link IP address (The firewall gateway) has a reverse lookup set
on an external DNS (ISP) for the link address.  The reverse
name is "my_domain".  This does not seem to work.

I have had the ISP set it to "mail.my_domain" and changed
"MASQUERADE_AS(`my_domain') to "MASQUERADE_AS(`mail.my_domain')

With "MASQUERADE_AS(`mail.my_domain'), mail will send to domains that
do otherwise not work.  However we can not receive mail or send mail
to other domains than the ones that do reverse lookup.


The DNS entries.
----------------
@                    IN     SOA     netserv.my_domain.
root.netserv.my_domain. (
                                    199911132
                                    28800
                                    7200
                                    604800
                                    86400 )
;
;*** Name server records...
;--------------------------
                    IN     NS     netserv.my_domain.
;
;*** Mail server record (MX)
;---------------------------
                    IN     MX     10 mail.my_domain.
;
;*** Start of records...
localhost           IN     A     127.0.0.1
mail                IN     A     192.168.200.107
netserv             IN     A     192.168.200.109

Reverse Zone...
---------------

@                   IN     SOA    netserv.my_domain.
root.netserv.my_domain. (
                           200040101 ; serial
                           28800 ; refresh
                           7200 ; retry
                           604800 ; expire
                           86400 ); default_ttl
;
;*Name server reverse lookup
;---------------------------
                     IN     NS     netserv.my_domain.
;
;*Reverse lookup records...
;--------------------------
107                  IN     PTR    mail.my_domain.
109                  IN     PTR    netserv.my_domain.


What can I do to get my mail system working.  Note that all mail arrives

via port forwarding to an internal server (Netserv) and sends mail out
via
MASQ firewall.

Also note that the "mail.my_domain" IP 192.168.200.107 is a 'virtual' IP

on "eth0" on the server (The main IP is 192.168.200.109).


Is there a problem using virtual IP addresses on the server.  Do I need
to
add "mail.my_domain" to "/etc/hosts" (It is in the DNS)?

Any help would be welcommed, I am out of ideas...


Best regards
Anthony
Technical Details
Message-ID: <38EB8361.FE85C5FE@movielink.net.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,3427cc8e158da143,start
X-Google-Attributes: gid102983,public
X-Google-Thread: 10de99,3427cc8e158da143,start
X-Google-Attributes: gid10de99,public
From: Anthony White <hardware@movielink.net.au>
Subject: Sendmail broken - or my setup...
Date: 2000/04/05
Message-ID: <38EB8361.FE85C5FE@movielink.net.au>
X-Deja-AN: 606841949
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@telstra.net
X-Trace: vic.nntp.telstra.net 954897547 139.130.11.172 (Wed, 05 Apr 2000 11:19:07 EST)
Organization: Movielink
MIME-Version: 1.0
Reply-To: hardware@movielink.net.au
NNTP-Posting-Date: Wed, 05 Apr 2000 11:19:07 EST
Newsgroups: comp.mail.sendmail,aus.computers.linux