Community Discussions and Support
SMTP Connection Error Port 25 is blocked

The good news is that your ini file looks overall quite good. The bad news is that sending SMTP mail over the Internet requires port 25. If you can't convince your ISP to allow you to use port 25 you should switch from MercuryE to MercuryC and relay through their SMTP server.

In MercuryS configuration change server port to 25 (and set 587 as alternate if you plan to use that for message submission). Change port forwarding from your Internet firewall/router accordingly, and you should be able to receive incoming mail.

Note that the MX records for the domain points to a different IP address:

 Name=ezish.com

    Type=MX, Class=1, TTL=86400 (1 Day), RDLENGTH=10

    Preference=21, Mail Exchange=mail2.ezish.com

- Name=ezish.com

    Type=MX, Class=1, TTL=86400 (1 Day), RDLENGTH=9

    Preference=10, Mail Exchange=mail.ezish.com

Additional Records Section:

- Name=mail2.ezish.com

    Type=A, Class=1, TTL=86400 (1 Day), RDLENGTH=4

    IP Address=174.37.88.145

- Name=mail.ezish.com

    Type=A, Class=1, TTL=86400 (1 Day), RDLENGTH=4

    IP Address=174.37.88.145

 
Coordinate this and make sure to have both the domain name and the appropriate host name as entries under local domains in core configuration.

/Rolf 

<p>The good news is that your ini file looks overall quite good. The bad news is that sending SMTP mail over the Internet requires port 25. If you can't convince your ISP to allow you to use port 25 you should switch from MercuryE to MercuryC and relay through their SMTP server.</p><p>In MercuryS configuration change server port to 25 (and set 587 as alternate if you plan to use that for message submission). Change port forwarding from your Internet firewall/router accordingly, and you should be able to receive incoming mail.</p><p>Note that the MX records for the domain points to a different IP address:</p><p> Name=ezish.com</p><p>    Type=MX, Class=1, TTL=86400 (1 Day), RDLENGTH=10</p><p>    Preference=21, Mail Exchange=mail2.ezish.com</p><p>- Name=ezish.com</p><p>    Type=MX, Class=1, TTL=86400 (1 Day), RDLENGTH=9</p><p>    Preference=10, Mail Exchange=mail.ezish.com</p><p>Additional Records Section:</p><p>- Name=mail2.ezish.com</p><p>    Type=A, Class=1, TTL=86400 (1 Day), RDLENGTH=4</p><p>    IP Address=174.37.88.145</p><p>- Name=mail.ezish.com</p><p>    Type=A, Class=1, TTL=86400 (1 Day), RDLENGTH=4</p><p>    IP Address=174.37.88.145</p><div> </div><div>Coordinate this and make sure to have both the domain name and the appropriate host name as entries under local domains in core configuration.</div><p>/Rolf </p>

Hi,

   I am trying to setup my smtp server on my local system, i know port 25 for smtp is blocked from my ISP. But i know port 587 is open.

 

Its resolving MX Records fine.

and i can connect to websites on telnet as well.

here is my INI file.

 #  MERCURY.INI generated by Mercury Setup
#
#
#  Sample Bindery Mode / Standalone Mode MERCURY.INI file.
#  This sample file implements most of the possible switches for each
#  module, but you can edit it to do less if you wish.
#
#  Anything after a '#' to the end of the line is a comment and
#  is stripped out before parsing. Trailing and leading whitespace
#  is also stripped before parsing. Many sample commands have been
#  left in this file commented out for reference purposes.
#
#  Note that in general, manual modification of this file is NOT
#  RECOMMENDED - use the Mercury "Configuration" menu to change the
#  program's settings wherever possible.
#

[General]
myname:          ezish.com    # Canonical name for this server
timezone:        +0000    # Time Zone to add to date fields
file_api:        1    # Use the file api instead of queues
mailqueue:       C:\MERCURY\QUEUE    # Where mail should be put for delivery
smtpqueue:       C:\MERCURY\QUEUE    # Where the SMTP client should look for mail
newmail_path:    C:\MERCURY\MAIL\~N    # Where to find the users' WinPMail mailboxes.

[Protocols]
C:\MERCURY\mercurys.dll
C:\MERCURY\mercurye.dll


[Mercury]
failfile:      C:\MERCURY\Mercury\FAILURE.MER    # Delivery failure notification template
confirmfile:   C:\MERCURY\Mercury\CONFIRM.MER    # Delivery confirmation template
aliasfile:     C:\MERCURY\Mercury\ALIAS.MER    # System-wide alias file
synfile:       C:\MERCURY\Mercury\SYNONYM.MER    # User synonym database
listfile:      C:\MERCURY\Mercury\LISTS.MER    # List of lists
logfile:       C:\MERCURY\Logs\Core\~y-~m-~d.log    # Traffic logging file
logwidth:      30    # Width of address fields in logfile
retpath:       1    # Do/Don't use 'return-path' for errors
maxhops:       30    # Used to detect mailing loops
gullible:      0    # If NZ, don't validate 'From' fields
poll:          5   # Seconds between queue polling cycles
scratch:       C:\MERCURY\Scratch    # Where we can write temp files
returnlines:   15    # How many lines of failed messages to return
postmaster:    Admin    # NetWare UIC of postmaster
broadcast:     1    # Yes, we want broadcast notifications, but
receipts:      0    # ... no broadcasts for receipt confirmations
PM_notify:     1    # Do/Don't send errors to the postmaster
change_owner:  1    # Change message ownership to recipient
auto_tzone:    1    # If NZ, obtain timezone information from OS
LogLevel:      15    # System message reporting level
LogMax:        100    # Maximum number of system messages to store
RetryPeriod:   1    # Period between job retries (minutes)
MaxRetries:    2    # Maximum number of times a job can fail
TwoPasses:     1    # If NZ, process submission queue in 2 passes
Autoaddress:   0    # If NZ, auto-generate user addresses based on name
Daily_exit:    0    # If NZ, auto-restart each day after maintenance
No_Areply:     0    # If NZ, disable automatic replies system-wide
Alt_Forward:   0    # If NZ, allow alternate forwarding specification
Maint_hour:    2    # Hour for daily maintenance (24-hour clock)
Maint_min:     0    # Minute for daily maintenance
Retry_Mode:    0    # If NZ, use progressive backoff for queue retries
Local_DSNs:    1    # If NZ generate Delivery Status for local users only
DSN_time1:     10800    # Seconds deferred before first DSN is sent
DSN_time2:     86400    # Seconds deferred before second DSN is sent
DSN_time3:     259200    # Seconds deferred before third DSN is sent
Host_in_title: 0    # If NZ, show hostname in system tray and taskbar
Lingering:     0    # Enable or disable 'lingering mailboxes'
Linger_Timeout: 60   # Seconds before a lingering mailbox is shut down
Alert_Host:    notify.pmail.com    # Host to check for licensee advisories
Alert_Interval: 720   # Frequency in minutes (min 240) for checks
Alert_Flags:   3    # Flags controlling advisory checks

[MercuryC]
logfile : C:\MERCURY\Logs\MercuryC\~y-~m-~d.log   # Traffic logging file
Session_logging : C:\MERCURY\Sessions\MercuryC\    # Directory for session log files
Session_logmode : 0
host:             # mail mail host which relays for us
scratch:     C:\MERCURY\scratch           # Where we can write temp files
poll:        30                   # Seconds between queue polling cycles
returnlines: 15                   # How many lines of failed messages to return
failfile:    C:\MERCURY\Mercury\FAILURE.MER  # Delivery failure template
esmtp:       1                    # Yes, we want to use ESMTP extensions

[MercuryE]
HELO : ezish.com
Session_logging : C:\MERCURY\Sessions\MercuryE
Session_logmode : 1
Poll : 15
Timeout : 60
Nameservers : 193.36.79.100,193.36.79.101
Logfile : C:\MERCURY\Logs\MercuryE\~y-~m-~d.log
Log_Verbose : 1
DNS_Timeout : 20
DNS_Retries : 2
Transcripts : 1
MaxThreads : 10

[MercuryD]
Session_logging : C:\MERCURY\Sessions\MercuryD\    # Directory for session log files
Session_logmode : 0
Scratch : C:\MERCURY\Scratch\MercuryD
# Timeout : 30
# Poll : 120               # How often to check hosts for new mail (seconds)

[MercuryS]
Debug : 1
Logfile : C:\MERCURY\Logs\MercuryS\~y-~m-~d.log
Timeout : 30
Relay : 0
Strict_Relay : 1
Server_Port : 587
Allow_Illegals : 0
SMTP_Authentication : 0
Session_logging : C:\MERCURY\Sessions\MercuryS
Session_logmode : 0
Compliance_Settings : 0
Maximum_Failed_Rcpts : 4
Max_Relay_Attempts : 4
SSL_Mode : 0
ST_Blacklisting : 288
No_VRFY : 0
SMTP_ConnFlags : 0

[MercuryP]
logfile : C:\MERCURY\Logs\MercuryP\~y-~m-~d.log   # Traffic logging file
Session_logging : C:\MERCURY\Sessions\MercuryP\   # Directory for session log files
Session_logmode : 0
Scratch : C:\MERCURY\Scratch\MercuryP
Timeout : 60
UIDL_nul_list : 1
New_UIDs : 1
No_NUL_passwords : 1

[MercuryX]
Drain_queues: 1
# Cmd_Delay: 10
# Cmd_Wait: 1
# IE4_Dialling: 0
# Use_ETRN: 1
# Clients_only: 1
# Sunday: 0800,1800,3,15,30,60
# Monday: 0830,2100,5,15,60,60
# Tuesday: 0830,2100,5,15,60,60
# Wednesday: 1500,1900,2,30,5,30
# Thursday: 0900,1900,2,30,0,0
# Friday: 0830,2100,5,15,60,60
# Saturday: 1031,1035,2,45,-1,0

# [Groups]
# testgroup            :     TESTGRP

[Domains]
#www: ezish.com
server : www.ezish.com
server : server
server : [91.106.212.113]

[Maiser]
Maiser:          Maiser   # 'Username' of mail server account
Helpfile:        C:\MERCURY\Mercury\MAISER.HLP   # Help sent on failed maiser requests
Lookupfile:      C:\MERCURY\Mercury\MAISER.LKP   # Format file for the 'lookup' command
Send_dir:        C:\MERCURY\Mercury\SENDABLE   # Directory for the 'send' command
Logfile:         C:\MERCURY\Logs\Maiser\~y-~m-~d.LOG   # Mail server log file
Notify:          C:\MERCURY\Mercury\TMP   # Dir. for pending 'notify' commands
NoList:          N   # If 'Y', disable the 'list' command
Local_only:      Y   # If 'Y', local 'notify' commands only

[MercuryH]
logfile : C:\MERCURY\Logs\MercuryH\~y-~m-~d.log   # Traffic logging file
# Addressbook : \\CLIO\SYS\SYSTEM\MERCURY\PH.PMR
# MOTD : \\CLIO\SYS\SYSTEM\MERCURY\PH-MOTD.TXT
# Administrator : postmaster@clio.pmail.gen.nz
Timeout : 30

[MercuryI]
Scratch : C:\MERCURY\Scratch\MercuryI
logfile : C:\MERCURY\Logs\MercuryI\~y-~m-~d.log   # Traffic logging file
Session_logging : C:\MERCURY\Sessions\MercuryI\   # Directory for session log files
Session_logmode : 0
Timeout : 120
Server_Port : 143
Idle_Timeout : 1800

[MercuryB]
Scratch : C:\MERCURY\Scratch\MercuryB
logfile : C:\MERCURY\Logs\MercuryB\~y-~m-~d.log   # Traffic logging file
Session_logging : C:\MERCURY\Sessions\MercuryB\   # Directory for session log files
Session_logmode : 0
Timeout : 120
Server_Port : 80
Idle_Timeout : 1800
# URL_Base : enter_your_domain_here

[Groups]

[Rewrite]

[Statistics]
StatFlags:    0  # Statistical reporting settings
STF_Hours:    24  # How often to write stat log files
STM_Hours:    24  # How often to e-mail stat log files

 

Please i am struggling with this for a week now.

Many thanks in advance.

<p>Hi,</p><p>   I am trying to setup my smtp server on my local system, i know port 25 for smtp is blocked from my ISP. But i know port 587 is open. </p><p> </p><p>Its resolving MX Records fine.</p><p>and i can connect to websites on telnet as well.</p><p>here is my INI file.</p><p> #  MERCURY.INI generated by Mercury Setup # # #  Sample Bindery Mode / Standalone Mode MERCURY.INI file. #  This sample file implements most of the possible switches for each #  module, but you can edit it to do less if you wish. # #  Anything after a '#' to the end of the line is a comment and #  is stripped out before parsing. Trailing and leading whitespace #  is also stripped before parsing. Many sample commands have been #  left in this file commented out for reference purposes. # #  Note that in general, manual modification of this file is NOT #  RECOMMENDED - use the Mercury "Configuration" menu to change the #  program's settings wherever possible. # [General] myname:          ezish.com    # Canonical name for this server timezone:        +0000    # Time Zone to add to date fields file_api:        1    # Use the file api instead of queues mailqueue:       C:\MERCURY\QUEUE    # Where mail should be put for delivery smtpqueue:       C:\MERCURY\QUEUE    # Where the SMTP client should look for mail newmail_path:    C:\MERCURY\MAIL\~N    # Where to find the users' WinPMail mailboxes. [Protocols] C:\MERCURY\mercurys.dll C:\MERCURY\mercurye.dll [Mercury] failfile:      C:\MERCURY\Mercury\FAILURE.MER    # Delivery failure notification template confirmfile:   C:\MERCURY\Mercury\CONFIRM.MER    # Delivery confirmation template aliasfile:     C:\MERCURY\Mercury\ALIAS.MER    # System-wide alias file synfile:       C:\MERCURY\Mercury\SYNONYM.MER    # User synonym database listfile:      C:\MERCURY\Mercury\LISTS.MER    # List of lists logfile:       C:\MERCURY\Logs\Core\~y-~m-~d.log    # Traffic logging file logwidth:      30    # Width of address fields in logfile retpath:       1    # Do/Don't use 'return-path' for errors maxhops:       30    # Used to detect mailing loops gullible:      0    # If NZ, don't validate 'From' fields poll:          5   # Seconds between queue polling cycles scratch:       C:\MERCURY\Scratch    # Where we can write temp files returnlines:   15    # How many lines of failed messages to return postmaster:    Admin    # NetWare UIC of postmaster broadcast:     1    # Yes, we want broadcast notifications, but receipts:      0    # ... no broadcasts for receipt confirmations PM_notify:     1    # Do/Don't send errors to the postmaster change_owner:  1    # Change message ownership to recipient auto_tzone:    1    # If NZ, obtain timezone information from OS LogLevel:      15    # System message reporting level LogMax:        100    # Maximum number of system messages to store RetryPeriod:   1    # Period between job retries (minutes) MaxRetries:    2    # Maximum number of times a job can fail TwoPasses:     1    # If NZ, process submission queue in 2 passes Autoaddress:   0    # If NZ, auto-generate user addresses based on name Daily_exit:    0    # If NZ, auto-restart each day after maintenance No_Areply:     0    # If NZ, disable automatic replies system-wide Alt_Forward:   0    # If NZ, allow alternate forwarding specification Maint_hour:    2    # Hour for daily maintenance (24-hour clock) Maint_min:     0    # Minute for daily maintenance Retry_Mode:    0    # If NZ, use progressive backoff for queue retries Local_DSNs:    1    # If NZ generate Delivery Status for local users only DSN_time1:     10800    # Seconds deferred before first DSN is sent DSN_time2:     86400    # Seconds deferred before second DSN is sent DSN_time3:     259200    # Seconds deferred before third DSN is sent Host_in_title: 0    # If NZ, show hostname in system tray and taskbar Lingering:     0    # Enable or disable 'lingering mailboxes' Linger_Timeout: 60   # Seconds before a lingering mailbox is shut down Alert_Host:    notify.pmail.com    # Host to check for licensee advisories Alert_Interval: 720   # Frequency in minutes (min 240) for checks Alert_Flags:   3    # Flags controlling advisory checks [MercuryC] logfile : C:\MERCURY\Logs\MercuryC\~y-~m-~d.log   # Traffic logging file Session_logging : C:\MERCURY\Sessions\MercuryC\    # Directory for session log files Session_logmode : 0 host:             # mail mail host which relays for us scratch:     C:\MERCURY\scratch           # Where we can write temp files poll:        30                   # Seconds between queue polling cycles returnlines: 15                   # How many lines of failed messages to return failfile:    C:\MERCURY\Mercury\FAILURE.MER  # Delivery failure template esmtp:       1                    # Yes, we want to use ESMTP extensions [MercuryE] HELO : ezish.com Session_logging : C:\MERCURY\Sessions\MercuryE Session_logmode : 1 Poll : 15 Timeout : 60 Nameservers : 193.36.79.100,193.36.79.101 Logfile : C:\MERCURY\Logs\MercuryE\~y-~m-~d.log Log_Verbose : 1 DNS_Timeout : 20 DNS_Retries : 2 Transcripts : 1 MaxThreads : 10 [MercuryD] Session_logging : C:\MERCURY\Sessions\MercuryD\    # Directory for session log files Session_logmode : 0 Scratch : C:\MERCURY\Scratch\MercuryD # Timeout : 30 # Poll : 120               # How often to check hosts for new mail (seconds) [MercuryS] Debug : 1 Logfile : C:\MERCURY\Logs\MercuryS\~y-~m-~d.log Timeout : 30 Relay : 0 Strict_Relay : 1 Server_Port : 587 Allow_Illegals : 0 SMTP_Authentication : 0 Session_logging : C:\MERCURY\Sessions\MercuryS Session_logmode : 0 Compliance_Settings : 0 Maximum_Failed_Rcpts : 4 Max_Relay_Attempts : 4 SSL_Mode : 0 ST_Blacklisting : 288 No_VRFY : 0 SMTP_ConnFlags : 0 [MercuryP] logfile : C:\MERCURY\Logs\MercuryP\~y-~m-~d.log   # Traffic logging file Session_logging : C:\MERCURY\Sessions\MercuryP\   # Directory for session log files Session_logmode : 0 Scratch : C:\MERCURY\Scratch\MercuryP Timeout : 60 UIDL_nul_list : 1 New_UIDs : 1 No_NUL_passwords : 1 [MercuryX] Drain_queues: 1 # Cmd_Delay: 10 # Cmd_Wait: 1 # IE4_Dialling: 0 # Use_ETRN: 1 # Clients_only: 1 # Sunday: 0800,1800,3,15,30,60 # Monday: 0830,2100,5,15,60,60 # Tuesday: 0830,2100,5,15,60,60 # Wednesday: 1500,1900,2,30,5,30 # Thursday: 0900,1900,2,30,0,0 # Friday: 0830,2100,5,15,60,60 # Saturday: 1031,1035,2,45,-1,0 # [Groups] # testgroup            :     TESTGRP [Domains] #www: ezish.com server : www.ezish.com server : server server : [91.106.212.113] [Maiser] Maiser:          Maiser   # 'Username' of mail server account Helpfile:        C:\MERCURY\Mercury\MAISER.HLP   # Help sent on failed maiser requests Lookupfile:      C:\MERCURY\Mercury\MAISER.LKP   # Format file for the 'lookup' command Send_dir:        C:\MERCURY\Mercury\SENDABLE   # Directory for the 'send' command Logfile:         C:\MERCURY\Logs\Maiser\~y-~m-~d.LOG   # Mail server log file Notify:          C:\MERCURY\Mercury\TMP   # Dir. for pending 'notify' commands NoList:          N   # If 'Y', disable the 'list' command Local_only:      Y   # If 'Y', local 'notify' commands only [MercuryH] logfile : C:\MERCURY\Logs\MercuryH\~y-~m-~d.log   # Traffic logging file # Addressbook : \\CLIO\SYS\SYSTEM\MERCURY\PH.PMR # MOTD : \\CLIO\SYS\SYSTEM\MERCURY\PH-MOTD.TXT # Administrator : postmaster@clio.pmail.gen.nz Timeout : 30 [MercuryI] Scratch : C:\MERCURY\Scratch\MercuryI logfile : C:\MERCURY\Logs\MercuryI\~y-~m-~d.log   # Traffic logging file Session_logging : C:\MERCURY\Sessions\MercuryI\   # Directory for session log files Session_logmode : 0 Timeout : 120 Server_Port : 143 Idle_Timeout : 1800 [MercuryB] Scratch : C:\MERCURY\Scratch\MercuryB logfile : C:\MERCURY\Logs\MercuryB\~y-~m-~d.log   # Traffic logging file Session_logging : C:\MERCURY\Sessions\MercuryB\   # Directory for session log files Session_logmode : 0 Timeout : 120 Server_Port : 80 Idle_Timeout : 1800 # URL_Base : enter_your_domain_here [Groups] [Rewrite] [Statistics] StatFlags:    0  # Statistical reporting settings STF_Hours:    24  # How often to write stat log files STM_Hours:    24  # How often to e-mail stat log files </p><p> </p><p>Please i am struggling with this for a week now.</p><p>Many thanks in advance. </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft