LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-01-2010, 10:10 PM   #1
eyedar
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Angry sendmail not reading default sendmail.cf


I recently modified sendmail.cf to use a third party SMTP server to send emails. It works great. But when I run sendmail from the command line, I have to specify the -C flag and force feed it the location of my sendmail.cf, or else it doesn't work.

So in other words, the following works great:

me@db0:~> sendmail -C/etc/mail/sendmail.cf -v foo@bar.com
This is a test message.
foo@bar.com... Connecting to smtp.xxxxxx.com port 465 via relay...
...
foo@bar.com... Sent (OK ...)

However, if I don't specify the -C flag, sendmail doesn't consider what's in the sendmail.cf and barfs:

me@db0:~> sendmail -v foo@bar.com
This is a test message.
foo@bar.com... Connecting to [127.0.0.1] via relay...
foo@bar.com... Deferred: Connection refused by [127.0.0.1]


I don't run sendmail as a daemon. I'm only using it to send emails. I know my modifications of sendmail.cf are correct because it works perfectly when I use the -C flag. I searched my disk to see if I could find another sendmail.cf on the machine and only the one in /etc/mail came up.

Any ideas why sendmail is not reading my sendmail.cf?

I'm running Sendmail version 8.14.2 on Fedora Core 8.
 
Old 04-02-2010, 10:03 AM   #2
poolejj
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 1
Try touch /etc/mail/sendmail.mc; touch /etc/mail/submit.mc; make -C /etc/mail
 
  


Reply

Tags
sendmail, sendmailmc


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
Reading mail with sendmail 8.13.8 on RHEL 5.1 Rocktron Linux - Software 3 01-17-2010 07:58 PM
Sendmail seems not to use default-auth-info DieSpeedy Linux - Software 8 07-30-2009 07:38 AM
Sendmail reading active directory liam57 Linux - Server 0 01-27-2009 12:58 AM
config sendmail and default gateway daisytw88 Linux - Server 2 04-04-2008 08:22 AM
mail not reading sendmail.cf file???? koutsane Linux - Software 1 07-18-2007 08:08 PM


All times are GMT -5. The time now is 11:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration