LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-01-2004, 06:30 AM   #1
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Rep: Reputation: 15
mail problem


Hi,

I have a sendmail smtp server. The sendmail server is working fine.

But when I type the below command it doesn't work at the console, the receipent doesn't receicve any mail. I would like to know what could be the reason.

ls -l | mail -s "listing" username@domain.com


The output of /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.220.20.x smtp.testing.com testing

The output of /etc/mail/access

# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
10.220.20 RELAY

Please do let me know what should I chnage in my configuration files.

Regards
 
Old 08-01-2004, 09:34 AM   #2
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
RajaRC

Try adding your domain name to

/etc/mail/local-host-names

Enter it as domain.com

Restart Sendmail

Pete
 
Old 08-01-2004, 10:38 AM   #3
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Original Poster
Rep: Reputation: 15
I have tried this also, but still it doesn't work. Any other things I need to check, pls let me know.

Regards,
 
Old 08-01-2004, 10:54 AM   #4
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
RajaRC

Is Sendmail listening on all interfaces ?

This line in Sendmail.mc should look like this

dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

You may have modified it, to make Sendmail listen on all interfaces just add dnl as above

Is this line uncommented

LOCAL_DOMAIN(`localhost.localdomain')dnl

In this case you should remove dnl

If you modify this file don't forget to remake /etc/mail/sendmail.cf as per instructions, restart Sendmail

Pete
 
Old 08-01-2004, 11:29 AM   #5
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Not the sendmail is listening only on one interface

The entry in my sendmail.mc file -

DAEMON_OPTIONS(`Port=smtp,Addr=10.220.20.x, Name=MTA')dnl


LOCAL_DOMAIN(`localhost.localdomain')dnl

Regards
 
Old 08-01-2004, 11:48 AM   #6
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
RajaRC

I know this probably sounds wrong but put dnl in front of the line like this

dnl DAEMON_OPTIONS(`Port=smtp,Addr=10.220.20.x, Name=MTA')dnl

Sendmail will then listen on all available interfaces, you should then be able to send mail from the command line

Pete
 
Old 08-02-2004, 01:02 AM   #7
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Pete

I will try this and then I will revert, if again I face the same problem.

Regards
 
  


Reply



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
Shel script mail send ("/" in mail address) problem anaid Linux - Networking 3 08-23-2005 07:41 AM
Qmail problem: ISP mail and virtual mail, "sorry no mailbox, here by that user" barryw Linux - Networking 7 05-28-2005 12:43 PM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Strange mail problem, no errors, and no mail quincy56 Linux - Networking 4 09-07-2004 12:21 AM
Mail problem sanjibgupta Linux - Security 1 09-02-2003 09:23 AM

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

All times are GMT -5. The time now is 07:11 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
Open Source Consulting | Domain Registration