LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2003, 12:54 PM   #16
brenne
LQ Newbie
 
Registered: Jan 2003
Posts: 1

Rep: Reputation: 0

Check your /etc/hosts. Had a similar problem where 127.0.0.1 was being mapped to the full hostname of the computer and hence to the computer's Internet-accessible address (not to 127.0.0.1 or localhost) and, since it isn't sendmail doesn't want to relay from outside hosts that connect, I believe this causes the problem.

My /etc/hosts first looked like this:

127.0.0.1 myhostname.com myhostname localhost.localdomain localhost

But when I changed it to

127.0.0.1 localhost.localdomain localhost
1.2.3.4 myhostname.com myhostname


where 1.2.3.4 is my IP address, things worked. See if this helps.
 
Old 02-01-2003, 08:35 PM   #17
harrygraham
Member
 
Registered: Apr 2001
Location: Ottawa, Canada
Distribution: Mint Cinnamon AMD64
Posts: 155

Rep: Reputation: 18
Sendmail problem

I got Sendmail to work on a dial-up connection, and with just localhost.localdomain, but it required some masquerading of the message headers. This is the file I used.


divert(-1)
dnl This is the macro config file used to generate the /etc/sendmail.cf
dnl file. If you modify the file you will have to regenerate the
dnl /etc/sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
dnl You will need to have the sendmail-cf package installed for this to
dnl work.
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`sendmail.mc - ee553@ncf.ca')

OSTYPE(linux)
define(`ALIAS_FILE',`/etc/aliases')
FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')
define(`SMART_HOST',`smtp.ncf.carleton.ca')
define(`confTO_QUEUEWARN', `16h')
MAILER(local)
MAILER(smtp)



Yhe complete instructions are at:



http://www.sendmail.org/~ca/email/offline_mailing.html


It works great, except I'd like to have fetchmail start when the ppp connection starts. Any ideas as how to accomplish this?

Harry
 
Old 02-03-2003, 11:20 PM   #18
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
I finally opted for POSTFIX.

Got it to work after I allowed it to relay through my ISP's mail service.

I decided to use WEBMIN to configure it. 'Tools all of five minutes.

I will try to work on SENDMAIL later...
 
Old 02-04-2003, 09:41 PM   #19
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
good choice
 
Old 03-06-2003, 05:06 PM   #20
mpoje
LQ Newbie
 
Registered: Mar 2003
Posts: 1

Rep: Reputation: 0
Fixed Same "localhost.com" Problem

I had the same problem and was able to fix it by editting the /etc/resolv.conf to search my local domain:
--
nameserver 123.123.123.123
search mydomain.com
--

(I had inadvertantly put only "com" in as a placeholder when I was installing the OS and sendmail resolved it to localhost.com, !?)

hope this keeps someone else from pulling out all the hair that got me to this 'simple' fix.

Last edited by mpoje; 03-06-2003 at 05:17 PM.
 
Old 03-06-2003, 07:33 PM   #21
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0, RHEL5,6), CentOS, SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64, MacOS, Raspian
Posts: 1,108

Rep: Reputation: 64
Quote:
Originally posted by rawbear
I finally opted for POSTFIX.

Got it to work after I allowed it to relay through my ISP's mail service.

I decided to use WEBMIN to configure it. 'Tools all of five minutes.

I will try to work on SENDMAIL later...
I had the same problem on a couple of RH8 system that use sendmail. There's a line near the bottom of sendmail.mc that reads:

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

If you change this to read:

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

you've effectively commented it out. Unless you do that mail stays stuck on the system.

You know, there was another thread about a week ago that involved this very same problem (no mail flowing and ``localhost.com'' showing up in the logs). The poster never did resolve it until he reinstalled the sendmail packages.

Apparently, Red Hat's making it easy for people to hose their mail setup.
 
Old 04-26-2003, 11:35 PM   #22
razametal
LQ Newbie
 
Registered: Apr 2003
Location: Manta - Ecuador - South America
Distribution: Debian
Posts: 19

Rep: Reputation: 0
Look at /etc/resolv.con

I had the same trouble, and add to the first line of /etc/resolv.conf

search mi-isp-name.com
nameserver mi-isp-dns-server
nameserver mi-isp-2nd-dns-server


Good luck.
 
  


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 Relay Help midmichmark Linux - Networking 1 12-29-2004 07:20 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 05:54 PM
How to connect in localhost for RH8.0? edhan Linux - Newbie 4 09-05-2003 08:01 PM
Localhost Login...okay but I can't. Using RH8. Frogmum Linux - Distributions 1 03-15-2003 08:40 PM
can't relay to other domains except LOCALHOST netkepala Linux - Software 4 10-13-2002 12:34 PM


All times are GMT -5. The time now is 08:28 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