====== Relay Outgoing SMTP Mail through Vertrauen ======

**Problem:**\\
Your ISP restricts or blocks //outbound// connections to TCP port 25 so you are unable to have the Synchronet [[server:Mail]] Server perform //Direct Delivery// of email messages to public mail (SMTP) servers which require mail delivery on TCP port 25.

**Problem:**\\
Some public mail services (e.g Gmail) reject email messages from your server due to a blocked/untrusted IP address or lack of a "SPF TXT" DNS record that authorizes mail to be sent from your mail server for your hostname.

**Solution:**\\
Use [[bbs:Vertrauen]]'s Synchronet Mail Server (on TCP port 587) to relay your outbound Internet mail.

**How-to:**
  - If you do not already have a QWK networking account on Vertrauen, [[howto:dove-net|create one]].
  - If running [[monitor:sbbsctrl|Synchronet Control Panel for Windows]], shut it down.
  - Add ''RELAY_TX'' and ''RELAY_AUTH_PLAIN'' to the ''Options'' key value in the ''[mail]'' section of your ''[[dir:ctrl]]/[[config:sbbs.ini]]'' file. Example: ''Options = ALLOW_POP3 | RELAY_TX | RELAY_AUTH_PLAIN''
  - Edit the following keys in the ''[mail]'' section of your ''[[dir:ctrl]]/[[config:sbbs.ini]]'' file:

  RelayServer=mail.synchro.net
  RelayPort=587
  RelayUsername=your BBS's QWK-ID
  RelayPassword=your QWKnet account password
  
Alternatively, if you using [[monitor:sbbsctrl|Synchronet Control Panel for Windows]], you can use the SBBSCTRL:Mail->Configure menu option to make the configuration changes and then hit the 'OK' button:

{{:howto:sbbsctrl_vert_relay_cfg.png|Synchronet Mail Server configuration for relaying through Vertrauen}}

Note: the "Use Relay Server" radio button must be checked on the "SendMail" tab for the "Relay" tab shown above to appear in the configuration dialog box.

Or... in [[util:SCFG]] v3.20+, in Servers->Mail Server->SendMail Thread...
  ╔═════════════════════════════════════════════════╗
  ║                 SendMail Thread                 ║
  ╠═════════════════════════════════════════════════╣
  ║ │Enabled                       Yes              ║
  ║ │Rescan Interval               1 hour           ║
  ║ │Connect Timeout               10 seconds       ║
  ║ │Auto-exempt Recipients        Yes              ║
  ║ │Max Delivery Attempts         50               ║
  ║ │Delivery Method               Relay            ║
  ║ │Relay Server Address          mail.synchro.net ║
  ║ │Relay Server TCP Port         25               ║
  ║ │Relay Server Authentication   Plain            ║
  ║ │Relay Server Username         your-qwk-id      ║
  ║ │Relay Server Password         pass             ║
  ╚═════════════════════════════════════════════════╝
  
**Policy:**\\
This relay service can be terminated for one or all clients for any reason at any time. Most notably, if you send SPAM through Vertrauen, you will lose all access to [[bbs:Vertrauen]]'s services, including this one. Your relayed mail messages are not private and there cannot be any expectation of privacy.

===== See Also =====
  * [[:howto:|howto index]]

{{tag>}}
