LinuxQuestions.org
Visit Jeremy's Blog.
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 02-17-2005, 12:58 PM   #1
TobyD
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
sendmail: deliver every mail directly to the given smarthost


Hi,

I'll forward all emails to a given smarthost:

from sendmail.mc:

define(`SMART_HOST', `my_smarthost')dnl

this works for all non local domains:

$sendmail -v -bv user@nonlocal.com
user@nonlocal.com... deliverable: mailer relay, host my_smarthost, user user@nonlocal.com

but if i send email to user@mydomani.com, then sendmail won't forward:

sendmail -v -bv user@mydomain.com
user@mydomain.com... User unknown

i've searched google for input, but i've not found a practicable sollution. ie:

define(`LOCAL_RELAY', `smtp:my_smarthost.')dnl
or
define(`MAIL_HUB', `smtp:my_smarthost.')dnl
of
define(`MAIL_HUB', `my_smarthost.')dnl

does not work. who can help me? which is the proper Option for sendmail.mc ?
Thanks in Advance
Tobias

ps. Fedora3, sendmail sendmail-8.13.1-2
 
Old 02-17-2005, 07:00 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Have you added "mydomain.com" to /etc/mail/local-host-names? This should fix your problem.
 
Old 02-17-2005, 08:12 PM   #3
TobyD
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
hi,

i've soved this issue. Reason was wrong "Cw"

Thanks
Toby
 
Old 02-18-2005, 06:52 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
Originally posted by TobyD
hi,

i've soved this issue. Reason was wrong "Cw"
Glad you found your problem.

BTW: Since you are using FC3, the sendmail.mc file already enables "FEATURE(use_cw_file)dnl", so manually changing the value of class w (Cw) in sendmail.mc -or- adding hostsnames/domain names to the local-host-names file accomplish the same thing. From the sendmail README file:
Code:
use_cw_file     Read the file /etc/mail/local-host-names file to get
                alternate names for this host.  This might be used if you
                were on a host that MXed for a dynamic set of other hosts.
                If the set is static, just including the line "Cw<name1>
                <name2> ..." (where the names are fully qualified domain
                names) is probably superior.  The actual filename can be
                overridden by redefining confCW_FILE.
 
  


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 ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 08:55 AM
Yet another Sendmail thread... SMARTHOST not working mychl Linux - Networking 1 03-15-2004 09:32 AM
Sendmail don't want deliver messages ruddy Linux - Software 0 01-14-2004 09:24 AM
Sendmail - Bounced messages returned to SmartHost Postmaster not locally... Vince0000 Linux - General 0 12-02-2003 02:54 PM
Sendmail won't deliver solomage Linux - Networking 1 09-08-2003 10:33 AM


All times are GMT -5. The time now is 10:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration