[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Sendmail SMART HOST

Posted on 2009-02-11
3
Medium Priority
?
738 Views
Last Modified: 2013-12-16
Hi,

I would like to use sendmail smart host only for sending mail to a certain domain.  For example, I want all mail to be default and send directly.  However, for any mail going to ``domain.com'', I would like to use the smart host.
0
Comment
Question by:bryanatm
  • 2
3 Comments
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 23614437
I know how to do it via postfix:

1. Edit /etc/postfix/transport. Example
domain.net smtp:[smtp.domain.net]

This means: when the destination is @domain.net, send mail through relay host smtp.domain.net. (The host name is in brackets to disable MX lookup)

2. Run 'postmap /etc/postfix/transport' to update the db (mine is hash)

3. In /etc/postfix/main.cf, enable transport_maps
transport_maps = hash:/etc/postfix/transport

In this case the map is a hash file, adjust as necessary. For more detail see 'man transport' for the syntax of the transport mappings.
0
 
LVL 16

Accepted Solution

by:
ai_ja_nai earned 2000 total points
ID: 23614499
I found the one for sendmail :http://anfi.homeunix.org/sendmail/smarttab.html
0
 
LVL 1

Author Comment

by:bryanatm
ID: 23622700
Thanks ai ja nai.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month18 days, 18 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question