LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2004, 01:53 AM   #1
dkw
LQ Newbie
 
Registered: Jul 2004
Location: Illinois
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
sendmail woes


Let me start out with some background... Last week I returned to linux after a couple years away, installed FC2 and was good to go. Had Samba up, Apache, and Sendmail - all working fine. I went to apply a new naming scheme to my network and changed the hostname on my linux box and then sendmail stopped working... I went through every doc/faq I could find and then just wiped the box and started over.

Now I can't get sendmail working again. D'oh.

Below is my current sendmail.mc, access, virtusertable, local-host-names, genericstable, generics-domains, and /etc/hosts - please let me know if there is any further information I can provide that will help figure out what my issue is.

I have added my gateway to /etc/sysconfig/network as well. I'm at a loss at this point, but I can no longer send/receive email via sendmail/dovecot either from my lan internally or any external. iptables is disabled and I've properly configured my Netgear FVS318 to accept the traffic.

Can someone look over my files and tell me if there's any glaring mistakes?

/usr/share/sendmail-cf/cf/sendmail.mc
Code:
divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl #     make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`Worman.tv sendmail.mc 7/28/04')dnl
OSTYPE(`linux')dnl
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl define(`confLOG_LEVEL', `9')dnl
define(`SMART_HOST',`mail.earthlink.net')
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
define(`CERT_DIR',`/etc/mail/certs')
define(`confCACERT_PATH',`CERT_DIR')
define(`confCACERT',`CERT_DIR/cacert.pem')
define(`confSERVER_CERT',`CERT_DIR/cert.pem')
define(`confSERVER_KEY',`CERT_DIR/key.pem')
define(`confCLIENT_CERT',`CERT_DIR/cert.pem')
define(`confCLIENT_KEY',`CERT_DIR/key.pem')
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(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')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(`root')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`worman.tv')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(worman.tv)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
/etc/mail/access (makemap hash /etc/mail/access < /etc/mail/access)
Code:
# by default we allow relaying from localhost...
192.168.0.1                     RELAY
192.168.0.2                     RELAY
192.168.0.3                     RELAY
192.168.0.8                     RELAY
68.166.89.158                   RELAY
venom.worman.tv                 RELAY
worman.tv                       RELAY
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
genericstable (makemap hash /etc/mail/genericstable < /etc/mail/genericstable)
[CODE]dkw dkw@worman.tv, david@worman.tv{/CODE]

local-host-names
[CODE]# local-host-names - include all aliases for your machine here.
venom.worman.tv
mail.worman.tv
smtp.worman.tv
worman.tv
localhost.localdomain
localhost{/CODE]

virtusertable (makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable)
Code:
david@worman.tv         dkw
/etc/hosts
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.2     venom.worman.tv venom mail.worman.tv mail
127.0.0.1       localhost.localdomain localhost

Last edited by dkw; 07-28-2004 at 01:55 AM.
 
Old 07-28-2004, 03:11 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
can u check whether your current hostname reflects in

uname -n
hostname
cat /proc/sys/kernel/hostname
 
Old 07-28-2004, 03:18 AM   #3
dkw
LQ Newbie
 
Registered: Jul 2004
Location: Illinois
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
[dkw@venom dkw]# cat /proc/sys/kernel/hostname
venom
[dkw@venom dkw]# uname -n
venom
[dkw@venom dkw]# hostname
venom
 
Old 07-28-2004, 03:40 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
I tried connecting to mail.worman.tv on port 25 and got a response from your mail server.

check the DAEMON_OPTIONS lines on /etc/mail/sendmail.cf ... whether they accept connections from your 192 addresses, 127 and your external addressses.

edit:
can you also modify your /etc/hosts as

# that require network functionality will fail.
192.168.0.2 venom.worman.tv venom
127.0.0.1 localhost.localdomain localhost
<external ip> mail.worman.tv mail

also, check whether your dns queries are able to resolve your domain and hosts.

Last edited by ppuru; 07-28-2004 at 03:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Spam / Upgrade woes marcusmiller Linux - Software 1 08-03-2005 07:03 AM
Sendmail woes caps_phisto Linux - Networking 4 12-30-2004 06:33 AM
sendmail woes. nikhil93 Linux - General 2 03-29-2004 02:06 PM
Sendmail Woes! rkane Slackware 14 06-04-2003 07:14 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration