Posted by , Last modified by Alan Rusek on 03 June 2015 10:46 AM
Nowadays , unfortunately, it is not rare for a remote system to reject emails from you. If you check the SMTP logs, you will not that right after you connect to a remote system to send an e-mail, you are disconnected, which usually indicates the remote system is blocking your IP. Other times, your server's IP might be listed on some DNSBL. There are even systems that block emails from an entire country, based on their IP.
Icewarp has two options which are very useful. First of all, it's important to note that Icewarp is usually set up to send out mail using DNS lookups (Use DNS Lookup), as see in screen below:
General -> Use DNS lookup" align="baseline" border="0" hspace="0" style="margin: 0px !important; border: 1px solid rgb(216, 219, 223); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; max-width: 100%; height: auto; padding: 3px; background-color: rgb(255, 255, 255);">
This means that Icewarp will query the DNS servers specific in System/Internet connection to find out remote systemâ€™s MX and connect to it directly, to send outbound mail.
If you are using this method, but your ISP is blocked at a specific destination, you can route all emails to that specific destination/domain through another SMTP server, which has a different outgoing IP. This is done with an option called Routing, found in Mail Service/SMTP Service/Routing, as seen below:
SMTP service -> Routing" align="baseline" border="0" hspace="0" style="margin: 0px !important; border: 1px solid rgb(216, 219, 223); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; max-width: 100%; height: auto; padding: 3px; background-color: rgb(255, 255, 255);">
The best way to set up SMTP routing is by clicking on the Edit file button, so you are editing the configuration file directly with notepad. On the top part of the Window, you should see comments and a comment button, so you can show/hide comments. Note the included examples.
If you want to route all emails destined to @aol.com via another SMTP server (letâ€™s say relay.isp.com), the syntax is:
If you want to redirect all emails to yahoo.com via SMTP server relay.isp.com, just change the line shown above, replacing the 2 places where aol.com appears with yahoo.com.
Note that, for this to work, relay.isp.com must be set to accept message relaying for your main serverâ€™s IP (which is sending out mail using relay.isp.com for this specific domain only). If itâ€™s a Icewarp at relay.isp.com, it has to have the main Icewarpâ€™s IP in Mail Service/Security/Trusted IPs.
An alternative is to use SMTP AUTH, so you can basically send out mail using any account that you have on an ISP, for example, that accepts SMTP authentication. The syntax is as follows if your ISP requires you to authenticate with just your username (what is to the left of the @ sign):
If your authentication is done with full email, the syntax is:
After you do the changes described above, be sure to restart the SMTP service (System/Service) and check your SMTP logs to be sure emails to these destinations are being relayed correctly.
Another nice option in Icewarp is the possibility to try to send all messages that were not successfully sent by your main mail server, through another SMTP server. To use this option, in Mail Service/SMTP Service/General, keep the radio button Use DNS lookup active, however, fill out an alternative mail server in the Use relay server field and mark the checkbox â€œDeliver messages via relay server when direct delivery failsâ€�.
This means that all messages which couldnâ€™t be sent by your main server, such as mailbox full at destination, account doesnâ€™t exist or blocked on a DNSBL, are sent to the relay server, so it can try.
In this field, you can specify an IP, however, it must that IP/relay server must be set to accept connections/relaying from your Icewarp. You can also SMTP AUTH. The syntax if you want to SMTP AUTH with just your username is:
So, for example: joe:email@example.com
If you need to SMTP AUTH with your full email, the syntax is:
If the syntax above does not work, replace the % after word username with a @.
Check your SMTP logs and CLICK HERE *** (link to other FAQ about how to detect spammer attack using demo accounts, etc) to understand how SMTP authentication works and how to decode it.
After doing these changes, restart your SMTP service and be sure to check your logs and your relay serverâ€™s logs, to be sure messages are being sent our correctly.