Current time: 11-17-2024, 10:17 AM Hello There, Guest! (LoginRegister)


Post Reply 
How-to use external smtp server ?
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: How-to use external smtp server ?
Setting otugoing mail relays for specific domains *can* be done, but it involves a great deal of postfix's custom configuration, and I'm not sure about how well this will play with ispcp's settings.

Nevertheless, what you need to do is add a new directive "sender_dependent_relayhost_maps = /etc/postfix/sender_dependent_relay". Thereafter, create the referenced file and write there something like "@domain.tld smtp:[your.provider.smtp.host]" (brackets must be there). Postmap this file and restart postfix.

By doing this, postfix will use "your.provider.smtp.host" as an outgoing relay whenever mails come from "xxxx@domain.tld" users. Additionally, you will probably also have to add these directives to main.cf:
Code:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

And write the user/password combination to identify against your isp's smtp server in the "/etc/postfix/sasl_passwd" file (that must also be postmapped). It should contain something like:
Code:
[your.provider.smtp.host]    user:password

Restart postfix and it will identify as this user whenever relaying mails through your isp's smtp server.
09-09-2010 05:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
How-to use external smtp server ? - mikeb - 10-30-2008, 03:53 AM
RE: How-to use external smtp server - BeNe - 10-31-2008, 04:21 AM
RE: How-to use external smtp server ? - kilburn - 09-09-2010 05:13 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)