How-to use external smtp server ? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: How-to use external smtp server ? (/thread-4823.html) |
How-to use external smtp server ? - mikeb - 10-30-2008 03:53 AM Hi all, My ISP is blocking port 25 and I cannot use my own smtp server, it needs to be redirecting all outgoing emails towards my isp smtp server. Thank you RE: How-to use external smtp server - joximu - 10-30-2008 09:30 AM Have a look in the postfix documentation... eg. http://www.postfix.org/BASIC_CONFIGURATION_README.html#relayhost RE: How-to use external smtp server - BeNe - 10-31-2008 04:21 AM Or in the Wiki --> http://www.isp-control.net/documentation/howto/mail/use_a_external_smtp_server Greez BeNe RE: How-to use external smtp server ? - momo - 09-05-2010 12:55 AM This works for a home laptop I use for monitoring. It sends db backup reports and nagios alerts. I haven't test for virtual mail. Code: nano /etc/postfix/main.cf RE: How-to use external smtp server ? - puster - 09-07-2010 11:51 PM Hi everybody, is there a chance that this can be done per domain, or is this a setting which generally only applies to an entire server? RE: How-to use external smtp server ? - momo - 09-08-2010 12:10 AM I doubt. http://www.postfix.org/postconf.5.html Search for multiple SMTP RE: How-to use external smtp server ? - kilburn - 09-09-2010 05:13 AM 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 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. RE: How-to use external smtp server ? - edinn - 09-15-2010 09:42 PM is it possible to make manual entry in postfix transport map, per domain, such as : /etc/postfix/ispcp/transport: domain.tld smtp:mx.google.com (postmap that file and postfix reload after) And ofc. to remove it from /etc/postfix/ispcp/domains I tried that today, because mx entry was overwritten by dns template after subdomain addition, but gives me relay acc. denied. RE: How-to use external smtp server ? - kilburn - 09-15-2010 10:32 PM @edinn: what you're doing is completely different. Namely, you are choosing the next hop transport for a given destination domain. Contrastingly, in this thread we were discussing different outgoing relays based on source address (the sender domain). RE: How-to use external smtp server ? - edinn - 09-15-2010 11:27 PM k, tnx, I'll start a new topic |