Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Error connecting to primary server

Last post 06-20-2010, 21:44 by Rolf Lindby. 8 replies.
Sort Posts: Previous Next
  •  06-19-2010, 16:48

    • mezia is not online. Last active: 06-26-2010, 12:34 mezia
    • Not Ranked
    • Joined on 06-19-2010
    • Member
    • Points 95

    Error connecting to primary server

    I can send and receive emails locally without any problem with OUTLOOK and I can receive email from NON-LOCAL address to LOCAL Address but I can't send email from my Local Address to NON-LOCAL Address (For e.g. local@172.74.77.141   to   XYZ@gmail.com) because I have receiving following error in my inbox.

    With reference to your message with the subject:   
    "aa"The local mail transport system has reported the following problemsit encountered while trying to deliver your message:
    -------------------------------------------------------------------*** XYZ@gmail.comError connecting to primary server '74.125.157.27'.Error connecting to alternate server '74.125.45.27'.Error connecting to alternate server '209.85.227.27'.Error connecting to alternate server '74.125.43.27'.
    ------------------------------------------------------------------- 
    Your mail message is being returned to you in the next part of thismessage.Should you need assistance, please mail postmaster@172.74.77.141.

    aa.eml
    Subject: 
    aa
    From: 
    Root <root@172.74.77.141>
    Date: 
    Sat, 19 Jun 2010 05:52:35 -0700
    To: XYZ@GMAIL>COM

    aa 
     

    No problem with port 25 on Firewall, Router and ISP. I spent 18 hours on that but found NO solution. Can anyone help me please

     Thanks 

  •  06-19-2010, 17:29

    • PaulW is not online. Last active: 17 May 2013, 17:36 PaulW
    • Top 10 Contributor
    • Joined on 05-08-2007
    • UK
    • SuperStar
    • Points 15,475

    Re: Error connecting to primary server

    mezia:
    I can send and receive emails locally without any problem with OUTLOOK and I can receive email from NON-LOCAL address to LOCAL Address but I can't send email from my Local Address to NON-LOCAL Address (For e.g. local@172.74.77.141   to   XYZ@gmail.com) because I have receiving following error in my inbox.

    First the format is wrong - local@[172.74.77.141] (square brackets needed for ip addresses).  Also, I would be surprised if gmail usually accepted those types of addresses - turn on session logging in MercuryE to find out the details.

     

  •  06-19-2010, 17:42

    • mezia is not online. Last active: 06-26-2010, 12:34 mezia
    • Not Ranked
    • Joined on 06-19-2010
    • Member
    • Points 95

    Re: Error connecting to primary server

    Thanks for your reply. Where to change the square brackets format in Mercury?

    I tried to send email from root@172.74.77.141 -to- XYZ@gmail.com from OutLook. Still Outing Jobs in Mercury Core Process showing me in Pending.

     

    Here is my Log detail

    T 20100619 082911 4c1bdc26 Begin processing job MO0000A0 from root@172.74.77.141

    W 20100619 082933 4c1bdc26 Error connecting to primary server '74.125.45.27'.

    W 20100619 082955 4c1bdc26 Error connecting to alternate server '74.125.45.27'.

    W 20100619 083016 4c1bdc26 Error connecting to alternate server '209.85.129.114'.

    W 20100619 083038 4c1bdc26 Error connecting to alternate server '74.125.43.27'.

    E 20100619 083038 4c1bdc26 Processing of job MO0000A0 incomplete or failed.

    T 20100619 083038 4c1bdc26 Job MO0000A0 processing complete.

    T 20100619 083151 4c1bdc27 Begin processing job MO0000A0 from root@172.74.77.141

    W 20100619 083212 4c1bdc27 Error connecting to primary server '74.125.45.27'.

    W 20100619 083233 4c1bdc27 Error connecting to alternate server '209.85.227.27'.

    W 20100619 083254 4c1bdc27 Error connecting to alternate server '209.85.129.114'.

    W 20100619 083316 4c1bdc27 Error connecting to alternate server '74.125.43.27'.

    E 20100619 083316 4c1bdc27 Processing of job MO0000A0 incomplete or failed.

    T 20100619 083316 4c1bdc27 Job MO0000A0 processing complete.

    T 20100619 083431 4c1bdc28 Begin processing job MO0000A0 from root@172.74.77.141

    W 20100619 083453 4c1bdc28 Error connecting to primary server '209.85.227.27'.

    W 20100619 083515 4c1bdc28 Error connecting to alternate server '209.85.129.27'.

    T 20100619 083519 4c1bdc29 Begin processing job MO0000A2 from root@172.74.77.141

    W 20100619 083536 4c1bdc28 Error connecting to alternate server '74.125.43.27'.

    W 20100619 083540 4c1bdc29 Error connecting to primary server '74.125.45.27'.

    W 20100619 083558 4c1bdc28 Error connecting to alternate server '74.125.45.27'.

    E 20100619 083558 4c1bdc28 Processing of job MO0000A0 incomplete or failed.

    T 20100619 083558 4c1bdc28 Job MO0000A0 processing complete.

    W 20100619 083601 4c1bdc29 Error connecting to alternate server '74.125.45.27'. 

     

     

    Gmail Test


    C:\>nslookup -qurey=mx gmail.com

    Server:  nsdall01.verizon.net

    Address:  68.238.96.12

     

    Non-authoritative answer:

    gmail.com       MX preference = 40, mail exchanger = alt4.gmail-smtp-in.l.google.com

    gmail.com       MX preference = 5, mail exchanger = gmail-smtp-in.l.google.com

    gmail.com       MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google.com

    gmail.com       MX preference = 20, mail exchanger = alt2.gmail-smtp-in.l.google .com

    gmail.com       MX preference = 30, mail exchanger = alt3.gmail-smtp-in.l.google.com


    gmail.com       nameserver = ns4.google.com

    gmail.com       nameserver = ns1.google.com

    gmail.com       nameserver = ns2.google.com

    gmail.com       nameserver = ns3.google.com

    gmail-smtp-in.l.google.com      internet address = 74.125.53.27

    alt1.gmail-smtp-in.l.google.com internet address = 74.125.65.27

    alt2.gmail-smtp-in.l.google.com internet address = 209.85.211.52

    alt3.gmail-smtp-in.l.google.com internet address = 209.85.229.27

    alt4.gmail-smtp-in.l.google.com internet address = 72.14.221.114

    ns1.google.com  internet address = 216.239.32.10

    ns2.google.com  internet address = 216.239.34.10

    ns3.google.com  internet address = 216.239.36.10

    ns4.google.com  internet address = 216.239.38.10 

     

    Everything seems ok but why its not working I am surprised as well...

  •  06-19-2010, 18:51

    • Rolf Lindby is not online. Last active: 2013-05-20, 0:54 Rolf Lindby
    • Top 10 Contributor
    • Joined on 05-08-2007
    • Stockholm, Sweden
    • SuperStar
    • Points 19,240
    • BetaTeam Moderator SystemAdministrator

    Re: Error connecting to primary server

    As PaulW said you need to provide a proper hostname for the SMTP greeting, otherwise the connection will not be accepted. If you choose to use your IP address as hostname it must be within square brackets. The hostname is set in Core configuration (Internet name for this system), and can be overridden in MercuryE configuration (Identify myself as).

    Additionally, some servers will refuse connections based on reverse DNS (PTR) response on IP lookups.

    /Rolf 

  •  06-20-2010, 11:10

    • PaulW is not online. Last active: 17 May 2013, 17:36 PaulW
    • Top 10 Contributor
    • Joined on 05-08-2007
    • UK
    • SuperStar
    • Points 15,475

    Re: Error connecting to primary server

    mezia:
    Here is my Log detail

    T 20100619 082911 4c1bdc26 Begin processing job MO0000A0 from root@172.74.77.141

    W 20100619 082933 4c1bdc26 Error connecting to primary server '74.125.45.27'.

    This looks like a general log - check the configuration to get a detailed 'session log' which will show all the smtp traffic.

    As Rolf said, you don't have a reverse IP address on 172.74.77.141 so not many servers will ever accept your mail.  Get your carrier to fix that, and if you can't you will have to use MercuryC and some other relay server.

  •  06-20-2010, 15:39

    • mezia is not online. Last active: 06-26-2010, 12:34 mezia
    • Not Ranked
    • Joined on 06-19-2010
    • Member
    • Points 95

    Re: Error connecting to primary server

    I tried to send test email but Mercury/32 not responding. I also tried to connect from my thunderbird but Mercury/32 not responding. I restart the software many times but nothing happen. I think I need to re-install the software but I don't know why Mercury not working.

    Q) Do we need to restart the Mercury after every change in the setting?

    Q) Where is session log option? 

    I have dedicated IP and yesterday I bought a domain. I am trying to configure SMTP.mydomain.com with my server IP through ZoneEdit.com. Any idea how Mercury work with any domain through ZoneEdit.com?

     Thanks for your help. 

  •  06-20-2010, 16:02

    • Rolf Lindby is not online. Last active: 2013-05-20, 0:54 Rolf Lindby
    • Top 10 Contributor
    • Joined on 05-08-2007
    • Stockholm, Sweden
    • SuperStar
    • Points 19,240
    • BetaTeam Moderator SystemAdministrator

    Re: Error connecting to primary server

    You probably don't need to reinstall Mercury unless you have had a disk crash. You may need to get some settings right, though. Please post the contents of the mercury.ini file if you want us to help with that. There could be general networking problems as well (firewall, redirects), as well as problems with interfering antivirus software.

    If you change any major item in the settings (modules, domains, interfaces, etc.) you should restart the program.

    The MercuryE session log can be switched on in MercuryE configuration ( Configuration / MercuryE SMTP Client / Logging / Enable session logging). Remember to switch it off again when the test is done, though.

    If the domain is correctly registered it will work with any mail server program (that's a networking/DNS matter).

    /Rolf

  •  06-20-2010, 20:59

    • mezia is not online. Last active: 06-26-2010, 12:34 mezia
    • Not Ranked
    • Joined on 06-19-2010
    • Member
    • Points 95

    Re: Error connecting to primary server

    I have changed my original public IP with 172.74.77.141 for security reasons on public forum. I am trying to connect my root@172.74.77.141 but its not working. Ports are free and open from router and computer firewall. MercuryE Session directory is empty even I tick session box in MercuryE.

     I am following this article about MercuryE http://i-tech-life.blogspot.com/2010/01/how-to-send-mail-from-localhost-with.html but I changed localhost with my real public IP 

     

    #  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:          [172.74.77.141]    # 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:\XAMPP\MERCURYMAIL\QUEUE    # Where mail should be put for delivery

    smtpqueue:       C:\XAMPP\MERCURYMAIL\QUEUE    # Where the SMTP client should look for mail

    newmail_path:    C:\XAMPP\MERCURYMAIL\MAIL\~N    # Where to find the users' WinPMail mailboxes.


    [Protocols]

    MERCURYS.DLL

    MERCURYP.DLL

    MERCURYE.DLL

    # MERCURYC.DLL

    MERCURYD.DLL

    MERCURYH.DLL

    MERCURYF.DLL

    MERCURYW.DLL

    MERCURYX.DLL

    # MERCURYI.DLL

    # MERCURYB.DLL


    [Mercury]

    failfile:      C:\xampp\MercuryMail\MERCURY\failure.mer    # Delivery failure notification template

    confirmfile:   C:\xampp\MercuryMail\MERCURY\confirm.mer    # Delivery confirmation template

    aliasfile:     C:\xampp\MercuryMail\MERCURY\alias.mer    # System-wide alias file

    synfile:       C:\xampp\MercuryMail\MERCURY\synonym.mer    # User synonym database

    listfile:      C:\xampp\MercuryMail\MERCURY\lists.mer    # List of lists

    logfile:       C:\xampp\MercuryMail\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:          10   # Seconds between queue polling cycles

    scratch:       C:\xampp\MercuryMail\SCRATCH    # Where we can write temp files

    returnlines:   15    # How many lines of failed messages to return

    postmaster:    Admin    # NetWare UIC of postmaster

    broadcast:     0    # 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:  0    # 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:    3    # 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]

    Host:             # mail mail host which relays for us

    Failfile : C:\xampp\MercuryMail\MERCURY\failure.mer

    Poll : 30

    Scratch : C:\xampp\MercuryMail\SCRATCH

    ReturnLines : 15

    Timeout : 30

    ESMTP : 1

    POP3_Auth : 0

    Logfile : C:\xampp\MercuryMail\LOGS\MERCURYC\~y-~m-~d.log

    Log_Verbose : 0

    Session_logging : C:\xampp\MercuryMail\SESSIONS\MERCURYC

    Session_logmode : 0


    [MercuryE]

    HELO : [172.74.77.141]

    Session_logging : C:\xampp\MercuryMail\SESSIONS\MERCURYE

    Session_logmode : 1

    Poll : 15

    Timeout : 60

    Nameservers : 68.238.96.12,68.238.64.12

    Logfile : C:\xampp\MercuryMail\LOGS\MERCURYE\~y-~m-~d.log

    Log_Verbose : 1

    DNS_Timeout : 20

    DNS_Retries : 4

    Transcripts : 1

    MaxThreads : 10


    [MercuryD]

    Scratch : C:\xampp\MercuryMail\SCRATCH\MERCURYD

    Timeout : 30

    Poll : 120

    Session_logging : C:\xampp\MercuryMail\SESSIONS\MERCURYD

    Session_logmode : 0


    [MercuryS]

    Debug : 1

    HELO : 172.74.77.141

    Logfile : C:\xampp\MercuryMail\LOGS\MERCURYS\~y-~m-~d.log

    Timeout : 30

    Relay : 1

    Strict_Relay : 0

    Interface : 172.74.77.141

    Allow_Illegals : 0

    SMTP_Authentication : 0

    Session_logging : C:\xampp\MercuryMail\ESSIONS\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]

    Scratch : C:\xampp\MercuryMail\SCRATCH\MercuryP

    Logfile : C:\xampp\MercuryMail\LOGS\MERCURYP\~y-~m-~d.log

    Stack : 32768

    Interface : 172.74.77.141

    Mark_Read : 1

    SSL_Mode : 0

    Login_Disabled : 0

    UIDL_nul_list : 1

    New_UIDs : 0

    No_NUL_passwords : 1

    Session_logging : C:\xampp\MercuryMail\SESSIONS\MERCURYP

    Session_logmode : 0

    Timeout : 60


    [MercuryX]

    Cmd_Wait: 1

    IE4_Dialling: 0

    Use_ETRN: 0

    Clients_only: 0

    Drain_queues: 1

    Sunday: 0000,0000,0,0,0,0

    Monday: 0000,0000,0,0,0,0

    Tuesday: 0000,0000,0,0,0,0

    Wednesday: 0000,0000,0,0,0,0

    Thursday: 0000,0000,0,0,0,0

    Friday: 0000,0000,0,0,0,0

    Saturday: 0000,0000,0,0,0,0


    [Domains]

    localhost: localhost

    localhost: [127.0.0.1]


    [Maiser]

    Maiser:          Maiser   # 'Username' of mail server account

    Helpfile:        C:\xampp\MercuryMail\MERCURY\maiser.hlp   # Help sent on failed maiser requests

    Lookupfile:      C:\xampp\MercuryMail\MERCURY\maiser.lkp   # Format file for the 'lookup' command

    Send_dir:        C:\xampp\MercuryMail\MERCURY\SENDABLE   # Directory for the 'send' command

    Logfile:         C:\xampp\MercuryMail\LOGS\MAISER\~y-~m-~d.log   # Mail server log file

    Notify:          C:\xampp\MercuryMail\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:\xampp\MercuryMail\LOGS\MERCURYH\~y-~m-~d.log

    Timeout : 30


    [MercuryI]

    Scratch : C:\xampp\MercuryMail\SCRATCH\MERCURYI

    Logfile : C:\xampp\MercuryMail\LOGS\MERCURYI\~y-~m-~d.log

    Timeout : 120

    Server_Port : 143

    Charset : ISO-8859-1

    Session_logging : C:\xampp\MercuryMail\SESSIONS\MERCURYI

    Session_logmode : 0

    Idle_Timeout : 1800

    SSL_Mode : 0

    Login_Disabled : 0

    No_NUL_passwords : 1


    [MercuryB]

    Scratch : C:\xampp\MercuryMail\SCRATCH\MERCURYB

    Logfile : C:\xampp\MercuryMail\LOGS\MERCURYB\~y-~m-~d.log

    Timeout : 120

    Server_Port : 2224

    Session_logging : C:\xampp\MercuryMail\SESSIONS\MERCURYB

    Session_logmode : 0

    Idle_Timeout : 1800

    SSL_Mode : 0

    Alt_Server_Port : 443


    [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 

  •  06-20-2010, 21:44

    • Rolf Lindby is not online. Last active: 2013-05-20, 0:54 Rolf Lindby
    • Top 10 Contributor
    • Joined on 05-08-2007
    • Stockholm, Sweden
    • SuperStar
    • Points 19,240
    • BetaTeam Moderator SystemAdministrator

    Re: Error connecting to primary server

    A few things to fix here.

    I am following this article about MercuryE http://i-tech-life.blogspot.com/2010/01/how-to-send-mail-from-localhost-with.html but I changed localhost with my real public IP 

    If you want to run Mercury as a normal mail server the default configuration is usually the best. The installer will prompt for most of the needed information. The most important things are the hostname (Internet name for this system in Core configuration) and local domains  (in Core as well). Mercury help usually gives good information in case something is unclear.

    myname:          [172.74.77.141]    # Canonical name for this server

    If you have a properly registered domain, put the domain name here instead.

    MERCURYX.DLL

    Disable this module unless you really need it. There is a nasty bug in the 4.72 version.

    [MercuryE]

    HELO : [172.74.77.141]

    Session_logging : C:\xampp\MercuryMail\SESSIONS\MERCURYE

    Session_logmode : 1

    Poll : 15

    Timeout : 60

    Nameservers : 68.238.96.12,68.238.64.1
    If you have a domain, HELO should preferably be domain name or hostname for this mailserver. Nameservers need to be filled in only if your Windows installation for some reason isn't providing Mercury with this information.

    [MercuryS]

    Debug : 1

    HELO : 172.74.77.141

    Logfile : C:\xampp\MercuryMail\LOGS\MERCURYS\~y-~m-~d.log

    Timeout : 30

    Relay : 1

    Strict_Relay : 0

    Interface : 172.74.77.141

    HELO is not needed here, remove the line. Relay must be 0 and Strict_Relay must be 1, otherwise you will be an open relay and your server will be blocked everywhere. Interface is not needed, remove the line (this applies to all other modules as well, I won't repeat it).

    [Domains]

    localhost: localhost

    localhost: [127.0.0.1]

     This is quite bad. It should look something like this:

    mail: servername               <-- Windows name for the server

    mail: domainname             <-- i.e. mydomain.com

    mail: full hostname            <-- i.e. mail.mydomain.com

    mail: [local IP]                   <-- i.e. [192.168.1.10]

    mail: [172.74.77.141]

    A restart will be required after making the changes.

    /Rolf

     

     
     
View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page