Resources

Setup guides, technical reference and answers for teams sending mail with ITPishon.

SMTP Integration

Send mail through our relay with the settings you already use in Outlook, scripts or your application.

1.Summary

You can stop running your own mail server. Point your outbound mail at our relay and send as you would through Outlook.

When to use SMTP

SMTP suits teams whose software, scripts or mail clients already speak SMTP and want to keep that setup. For batch senders on a Dedicated Server or Hybrid Cloud, Drop-Folder is the other route: your system drops files and our engineers configure the rest with your team.

Setup in two steps

1. Once your account is active, SMTP is available automatically. 2. Enter the server settings below in your mail client or application.

Server settings at a glance

SMTP server: smtp.itpison.com. Backup server: smtp2.itpison.com. Port: 465 with SSL encryption. Account and password: your sign-in details for your account.

First test

Send your first test to a Gmail address, not a company mailbox. See Set up your account below.

Backup server

Use smtp2.itpison.com if the connection to smtp.itpison.com fails. It uses the same username and password. Most libraries do not switch servers automatically.

2.Set up your account

Sign in

Email support@itpison.com to get your account set up. Your SMTP username is your account sign-in name, and the password is your account password. Before your first send, publish the SPF and DKIM records for your sending domain (see the Deliverability Guide).

SMTP access

Once your account is active, SMTP is available automatically. There is nothing to switch on.

3.SMTP server settings

A port is the channel two mail systems use to exchange mail. Encryption protects the data in transit. The ports commonly used for SMTP are 25, 587 and 465, with either SSL or TLS (STARTTLS) encryption. With SSL, encryption starts as soon as the connection opens. With STARTTLS, the connection opens first and encryption starts when the client asks for it. SSL protects the data from the first byte. Use only the combinations listed below. If you need a specific port, ask our team.

Common SMTP ports

Port 25The original SMTP port. Normally used without encryption, and can be encrypted when both sides agree.
Port 465Commonly used for SSL. Most mail systems use it with encryption.
Port 587Commonly used for TLS (STARTTLS).

Port 465, SSL encryption (recommended)

SMTP server
smtp.itpison.com (backup: smtp2.itpison.com)
Account
your account sign-in name
Password
your account sign-in password
Port
465
Encryption
SSL

TLS (STARTTLS)

SMTP server
smtp.itpison.com (backup: smtp2.itpison.com)
Account
your account sign-in name
Password
your account sign-in password
Port
25 or 587
Encryption
TLS (STARTTLS)

Certificate note

The encryption certificate for smtp.itpison.com covers *.itpison.com. Some mail programs check that the certificate matches the host name you typed. If an encrypted connection keeps failing with a message like the one below, connect to smtp.itpison.com exactly as written.

SMTP error: Failed to connect to SMTP host. Connection failed. stream socket enable crypto: Peer certificate CN='*.itpison.com' did not match expected CN='smtp.itpison.com'

4.Test your settings

After setup, test with any of these web-based SMTP tools: gmass.co/smtp-test, smtper.net, or dnschecker.org/smtp-test-tool.php. Enter smtp.itpison.com as the server and port 25 or 465 (encrypted). The page shows the full SMTP conversation as the test runs. Use a test account password you can change afterwards. These sites are not run by us.

Read the result

The test message should reach your inbox with a single line, "Test message". The sender shown is the address you typed into the test page. If the message does not arrive, the test failed. Send us the error text from the SMTP conversation and we will investigate. If a test shows an error, try a second testing site to rule out a problem with the site itself.

5.Sample code in Python

This sends an HTML message over SSL on port 465. Replace the placeholders with your own values.

import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText

# SMTP server configuration
smtp_server = "smtp.itpison.com"
smtp_port = 465
smtp_username = "sign-in name"
smtp_password = "sign-in password"

# Email content
from_email = "sender email address"
from_name = "sender name"
to_email = "recipient email address"
to_name = "recipient name"
reply_to_email = "reply-to email address"
subject = "Test Mail"
html_body = """
<p>This is a test mail.</p><br>
"""

# Create message container
msg = MIMEMultipart("alternative")
msg["From"] = f"{from_name} <{from_email}>"
msg["To"] = f"{to_name} <{to_email}>"
msg["Subject"] = subject
msg["Reply-To"] = reply_to_email

# Attach the HTML body
msg.attach(MIMEText(html_body, "html"))

try:
    # Connect to the SMTP server
    server = smtplib.SMTP_SSL(smtp_server, smtp_port)
    server.login(smtp_username, smtp_password)
    # Send email
    server.sendmail(from_email, to_email, msg.as_string())
    server.quit()
    print("Message has been sent")
except Exception as e:
    print(f"Message could not be sent. Error: {str(e)}")

Port 587 with STARTTLS

Replace the connection lines with these, then log in and send as above.

server = smtplib.SMTP(smtp_server, 587)
server.starttls()

6.Common troubleshooting

Authentication failedCheck the account and password, and that SMTP is enabled in your account.
Wrong settingsMost failed tests come from a setting error. Check that SMTP is set to Enable in your account, and that the server, port, encryption and sign-in details match this guide exactly.
Your network blocks outbound SMTPHome broadband (fiber, ADSL), 4G or 5G mobile connections and shared virtual hosting (for example a WordPress site) often block outbound port 25. If the web-based test works but your own network does not reach smtp.itpison.com on port 25, your network is blocking it. Try port 465 or 587. Port 465 usually works without a static IP. A static IP line is the other fix for port 25.

7.Advanced: control sending with headers

Over an SMTP connection (25, 465 or 587, SSL or TLS) you can add X-Header lines to a message to give sending instructions. Several can be combined in one message. Your default options can also be set in your account.

Header names

  • X-JobName: Job name
  • X-RefNumber: Job reference number
  • X-NextLaunchTime: Scheduled start time
  • X-LaunchExpireTime: Time after which the send expires
  • X-LaunchType: Launch type
  • X-LaunchClass: Launch class
  • X-LaunchOption: Launch options
  • X-JobOption: Job options
  • X-ListOption: List handling options
  • X-LinkOption: Tracking and link options

Examples

Add one header line to the message. Each example below is the header only; the From, To, Subject and body lines are your own.

7.2.1 Do not track opens

X-LinkOption: 64

7.2.2 Do not track links

X-LinkOption: 128

7.2.3 Do not track opens or links

X-LinkOption: 192

7.2.4 Keep all To headers

X-ListOption: 1

7.2.5 Keep all Cc headers

X-ListOption: 2

In Python, call msg.add_header with the header name and value from the list above, before you send.