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 |
Have you added "mydomain.com" to /etc/mail/local-host-names? This should fix your problem.
|
hi,
i've soved this issue. Reason was wrong "Cw" ;) Thanks Toby |
Quote:
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 |
All times are GMT -5. The time now is 02:49 AM. |