Server Routing Mail to Old Entries

A server in a cluster of four has started trying to send SMTP mail to old email relays and not reading the entries in the configuration document that applies for the cluster. We have restarted the router, and restarted the Domino service. The other 3 servers route correctly.

As a generic example, anything going to the AllSMTP domain should go to a VIP called relay. This replaced an old entry called smtphub1.

Additionally, the server is not recognising the wildcarded domains and trying to send directly, such as *contoso.com which should go to AllSMTP but this server is trying to route it to username@contoso.com, which does not work.

I have searched everywhere I can think of to find the entries. I have edited and saved the config doc. I can't find an entry anywhere.

Please help! we don't know why it started doing this.

Hello Stephen,

Do you have any Foreign SMTP domain document which would route to email from problem server to old relay server "smtphub1" ?. The Foreign SMTP document will have corresponding SMTP connection document to route the emails.

If the routing on the problematic server is using the Foreign SMTP Domain document to route email then you may try below steps to ignore Foreign SMTP Domain document.

To ignore Foreign SMTP Domain document and use configuration document "Relay Hosts" field route emails then, you can enable the below server notes.ini parameter on the problematic server and see if that helps.

RouterIgnoreForeignSMTPDomains=1

You can enable the ini dynamically on the server by below steps.

Set config RouterIgnoreForeignSMTPDomains=1

Tell Router Quit (Wait for router to quit)

Load Router

Thank you

Regards

Shrikant J

Hi, Shrikant! I'll try that though the Foreign Domain docs are set correctly and don't mention the VIP it is routing to (they all point to AllSMTP).

Thank you for that! Noting that the Foreign SMTP Domain document applies to all the servers, I'm not sure how that would have an affect on just one server. Also, searching through the Address Book has shown no instance of the text "smtphub1".

This is the list of Foreign SMTP Domains listed, which all point to the correct Next Domain:

Hi Stephen,

Do you see any SMTP connection document against the foreign SMTP domain documents in the Domino directory ?

You can enable the below debugs on the problematic server to understand which document it is taking to route emails.

set config debugrouter=3

set config smtpclientdebug=1

set config log_mailrouting=40

tell router update config

You can enable the below debugs on the problematic server to understand which document it is taking to route emails.

You can share the console after you send the email. You can change the IP address, host name, user name, email address in the logs to some dummy names.

You can disable the debugs using the below command.

set config debugrouter=0

set config smtpclientdebug=0

set config log_mailrouting=20

tell router update config

Thank you

Regards

Shrikant J

Hi Stephen,

please doublecheck the setting in the Configuration Settings document below Router/SMTP / Basics tab for that server:

SMTP used when sending messages outside the local Internet should be deactivated for that server. If this is set to activated for this server, it will send outbound mails directly to the internet

Only the (source) server that is configured in the SMTP connection document for your domain AllSMTP for sending outbound mails to the internet this SMTP used when sending messages outside the local Internet should be activated.

Anyway it is always a good idea to doublecheck the configuration is replicated to the server and appears at that server. And also send the tell router update config command via the domino console after changing settings.

Regards

Mike

Hi, Mike. the configuration is for the cluster, not the individual server. The other 3 servers route fine, just not the 4th server. I've updated the config after each change and also restarted the Domino server service repeatedly.

Hi Stephen,

Anyway if you got several Domino server running in a cluster, you have separate configurations for each server node of the cluster. The configuration can differ from server node to server node within the cluster.

- You must have a Server document for each server node. (this is not where you need to look at)

- In general you also might have a Configuration Settings document for each server node. (this is where we need to look at). But this is not a must have...

In addition you might have a common "default Configuration Settings document", that configures any Domino server, that is not configured by an explicit Configuration Settings document (This default (*) Configuration is at the very top in the Configuration Settings view).

I guess, you don't have an explicit Configuration Settings document for your server, where the issue appears. For this server will do the common default Configuration Settings document its job. And maybe here "SMTP used when sending messages outside the local Internet" is activated and will not be overruled by an explicit Configuration Settings document that simply does not exist.

Regards

Mike

Hi, Mike! We have the normal default ("*") config doc for the domain and one config doc for the cluster that handles SMTP mail routing. There are no server-specific config docs for any servers in that cluster. The issue is one server in the routing cluster that doesn't apply Messaging > Domains config for SMTP. It tries to route to the specific email domain and not "AllSMTP" as directed.

Hi Stephen,

I understand.

So you got an explicit config doc for a group with all members of the cluster with this setting.

...but this one server thinks it is not part of that group. At the Basic Tab at "Group or Server name", is there a group name or the cluster title listed?

It should be a server group name, that might got just the same name as the cluster. Is your server also member of that group like member of the cluster?

For the - lets call it SMTP-hub - Domino server must exist an explicit config doc, where this is Enabled.

Regards

Mike

G'day! The document applies for the cluster and looks as follows for routing:

The config applies to the server group name, of which the recalcitrant server is a member.

Note that the address book replication is up to date. I have cleared the history and pushed replications multiple times. Server service and router have been restarted many times. The only thing I haven't done yet is make a new replica (or file copy) of the NAB.

Well, this gets even more strange.

By this setting all servers from the cluster should send the mails directly.

So, one acts correct (that you don't want) and any other send mails by error through the foreign domain documents (what you want)

So you are saying that should NOT be enabled.

Hi Stephen,

I like to break this previous tread...

Yes! In general it should work like this:

Lets say you got 4 Domino server in a cluster, lets call them dom1 to dom4. All of them should not interact with the Internet by SMTP. For this you got another Domino Server, lets call it dom5.

1. Configure dom5 first:

  • For dom5 the "SMTP used when sending messages outside the local Internet" option is activated.
  • Maybe you got a Mail-Appliance, whatever, as next Hop. Configure this at the Router tab of the Configuration Settings document for dom5 also.

2. Configure an Server Connection document, where:

  • Connection type: SMTP
  • Source Server: dom5
  • Source domain: [yourdominodomain]
  • Connect via: Direct Connection
  • Destination server: WhateverName (no Domino Server Name, it should be a dummy name)
  • Destination domain: AllSMTP (...get it?)
  • SMTP relay host: (you may configure a single next hop here too, i prefer to configure the next hop as above)
  • Replication: (disabled)
  • Routing Task: Mail Routing (not SMTP Mail Routing, this is a very common failure!)
  • Schedule Connection: enabled, all day, any time, Repeat: 0

3. Configure your Foreign Domain document, where:

  • Domain Type: Foreign SMTP Domain
  • Messages Addressed to: Internet Domain: *.*
  • Should be Routed to: Domain Name: AllSMTP

4. Configure any "internal" Domino server, Configuration Settings document for dom1 to dom4, maybe for a server group "domcluster", where dom1 to dom4 are members:

  • "SMTP used when sending messages outside the local Internet" option is deactivated.
  • No Relay Host configured

5. Replicate this through all Domino Servers, Wait - or set "tell router update config" at any Domino server console

This will act like it should:

  1. An outbound mail happens
  2. No server may route outbound by SMTP, but dom5. The Foreign Domain document will route any outbound mail (defined by *.*) to the virtual domain AllSMTP. (just your name for it)
  3. The virtual domain AllSMTP will "connect" to the server dom5 by the SMTP connection document within your Domino domain. Mail from anywhere in the Domino domain will be routed to dom5 by Notes mail routing.
  4. dom5 is able to outbound by SMTP and will route the mail to the Internet or to your mail-appliance, configured for dom5 in it's Configuration Settings document.

This is the way* - from my point of view.

*Mandalorian

Best Regards

Mike

So, we have 4 servers that route SMTP all in the same cluster. The config doc for the cluster originally worked for all the servers. Now, for some reason, server Dom2 has decided to route differently.

Due to requirements for high availability (2 servers in the primary datacentre)/disaster recovery (2 servers in the secondary datacentre) all 4 server must be able to route SMTP to AllSMTP. We can't have one server (single point of failure) doing all the SMTP routing.

Hi Stephen

No Problem,

if you need two SMTP, you can set up two of your AllSMTP connection configurations. Or even more. In this configurations you can also setup routing priority and other things.

But - what is AllSMTP in your case? Is this for a configuration for one or two Domino SMTP mail routing Hub server? Or one or two or more mail-gateways?

I got no idea, well i am more and more confused of your infrastructure in general.

Anyway, i guess your issue is because of this not stringent configuration.

If all of those 4 server must be able to send outbound SMTP, you must think different. In this case, all server must send via SMTP. If all Servers shall route to the Internet by SMTP, you do not even need a mail routing based on a Foreign Domain configuration.

This Foreign Domain configuration is ment to centralise the routing through one or two SMTP Hub (Domino) server. Maybe those Hub servers are located in a DMZ, maybe because your 4 internal mail servers don't have internet DNS, maybe you don't like to configure TLS and SMTP four times, whatever... There might be a lot of reasons to build it this way.

But now i think you don't have SMTP Hub (Domino) server where you want to route through?

Regards

Mike