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):
company.com=%%alias%%@company.com;;user:pwd@relay.isp.com
If your authentication is done with full email, the syntax is:
company.com=%%alias%%@company.com;;username%domain.com:passwd@relay.isp.com
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:
<username>:<password>@<MyISPhostname>
So, for example: joe:password@smtp.isp.com
If you need to SMTP AUTH with your full email, the syntax is:
<username%domain.com>:<password>@<MyISPhostname>
So, for example: joe%domain.com:password@smtp.isp.com
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.