Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 15:57 
New user
New user

Joined: 2009-03-27 15:42
Posts: 5
hmailserver Version 5
I will send all outgoing E-Mails (SMTP) with various external SMTP Servers different per domain.
I have set up multiple SMTP Routes per Domain e.g. gmx.net (as Route gmx.net), gmail.com (as Route gmail.com) etc.
For each Route I have also provided an correct external SMTP Server and Username & Password.

I have also set Global Rules per Domain as follows:

Global Rule 1
Criteria: FROM Wildcard *@gmx.net
Actions: Send using Route and selected Route gmx.net

Global Rule 2
Criteria: FROM Wildcard *@gmail.com
Actions: Send using Route and selected Route gmail.com

The problem is now that hmailserver ignores the Rules and Routes and sends all e-mails to external addresses directly via MX and not via the provides Routes and external SMTP Servers.
Whats wrong with my Settings?


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 18:52 
Developer
Developer

Joined: 2003-11-21 01:09
Posts: 6303
Location: Sweden
I doubt hMailServer ignores the rules.
Can you post the complete headers of an email which is affected by the problem?


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 21:57 
New user
New user

Joined: 2009-03-27 15:42
Posts: 5
Hi Martin,

thanks for your reply, here is the hmailserver log with a trial of sending a message.
I have changed the email addresses in the log data to avoid spam.

<-- BEGIN LOG -->

"SMTPD" 408 7131 "2009-03-27 20:45:05.688" "192.168.1.10" "SENT: 220 zzz.at ESMTP"
"SMTPD" 2052 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "RECEIVED: EHLO mtsrv001"
"SMTPD" 2052 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "SENT: 250-hmailserver[nl]250-SIZE 200480000[nl]250 AUTH LOGIN"
"SMTPD" 2020 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "RECEIVED: AUTH LOGIN"
"SMTPD" 2020 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "SENT: 334 VXNdslcm5hbWU6"
"SMTPD" 408 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "RECEIVED: bXRtwsYWlsQGFvbi5hdA=="
"SMTPD" 408 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "SENT: 334 UGFzcws3dvcmQ6"
"SMTPD" 2052 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "RECEIVED: ***"
"SMTPD" 2052 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "SENT: 235 authenticated."
"SMTPD" 2020 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "RECEIVED: MAIL FROM: <[email protected]>"
"SMTPD" 2020 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "SENT: 250 OK"
"SMTPD" 408 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "RECEIVED: RCPT TO: <[email protected]>"
"SMTPD" 408 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "SENT: 250 OK"
"SMTPD" 2052 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "RECEIVED: DATA"
"SMTPD" 2052 7131 "2009-03-27 20:45:05.704" "192.168.1.10" "SENT: 354 OK, send."
"DEBUG" 2064 "2009-03-27 20:45:05.719" "Saving message: D:\hMailServer\Data\{BF489F4D-FCD1-4FB6-9ABE-B5E86BB86C5D}.eml"
"DEBUG" 2064 "2009-03-27 20:45:05.719" "Requesting SMTPDeliveryManager to start message delivery"
"SMTPD" 2064 7131 "2009-03-27 20:45:05.735" "192.168.1.10" "SENT: 250 Queued (0.015 seconds)"
"DEBUG" 1132 "2009-03-27 20:45:05.735" "SD::DeliverMessage"
"APPLICATION" 1132 "2009-03-27 20:45:05.735" "SMTPDeliverer - Message 1481: Delivering message from [email protected] to [email protected]. File: D:\hMailServer\Data\{BF489F4D-FCD1-4FB6-9ABE-B5E86BB86C5D}.eml"
"DEBUG" 1132 "2009-03-27 20:45:05.735" "ClamWinVirusScanner::Scan()"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "ClamWinVirusScanner::Scan() - D:\ClamWin\bin\clamscan.exe --database="C:\ProgramData\.clamwin\db" "{BF489F4D-FCD1-4FB6-9ABE-B5E86BB86C5D}.eml" --tempdir="C:\Windows\Temp" - Returned 0"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "ClamWinVirusScanner::~Scan()"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rules"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Applying rule"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Performing local delivery"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Local delivery completed"
"DEBUG" 1132 "2009-03-27 20:45:08.016" "Performing external delivery"
"TCPIP" 1132 "2009-03-27 20:45:08.016" "DNS - MX Lookup: gmx.net"
"TCPIP" 1132 "2009-03-27 20:45:08.047" "DNS - MX Result: 2 IP addresses were found."
"DEBUG" 1132 "2009-03-27 20:45:08.047" "SD::_InitiateExternalConnection"
"DEBUG" 1132 "2009-03-27 20:45:08.047" "Created TCPConnection"
"DEBUG" 1132 "2009-03-27 20:45:08.047" "Creating session 7132"
"DEBUG" 2020 "2009-03-27 20:45:08.219" "SMTPClientConnection::_ParseASCII()"
"SMTPC" 2020 7132 "2009-03-27 20:45:08.219" "213.165.64.100" "RECEIVED: 220 mx0.gmx.net GMX Mailservices ESMTP {mx008}"
"SMTPC" 2020 7132 "2009-03-27 20:45:08.219" "213.165.64.100" "SENT: HELO zzz.at"
"DEBUG" 2020 "2009-03-27 20:45:08.219" "SMTPClientConnection::~_ParseASCII() - 2"
"SMTPD" 2052 7131 "2009-03-27 20:45:08.251" "192.168.1.10" "RECEIVED: QUIT"
"SMTPD" 2052 7131 "2009-03-27 20:45:08.251" "192.168.1.10" "SENT: 221 goodbye"
"DEBUG" 408 "2009-03-27 20:45:08.251" "Closing TCP/IP socket"
"DEBUG" 408 "2009-03-27 20:45:08.251" "Deleted TCPConnection"
"DEBUG" 408 "2009-03-27 20:45:08.251" "Ending session 7131"
"DEBUG" 2052 "2009-03-27 20:45:08.282" "SMTPClientConnection::_ParseASCII()"
"SMTPC" 2052 7132 "2009-03-27 20:45:08.282" "213.165.64.100" "RECEIVED: 250 mx0.gmx.net GMX Mailservices {mx008}"
"SMTPC" 2052 7132 "2009-03-27 20:45:08.282" "213.165.64.100" "SENT: MAIL FROM:<[email protected]>"
"DEBUG" 2052 "2009-03-27 20:45:08.282" "SMTPClientConnection::~_ParseASCII() - 4"
"DEBUG" 408 "2009-03-27 20:45:08.344" "SMTPClientConnection::_ParseASCII()"
"SMTPC" 408 7132 "2009-03-27 20:45:08.344" "213.165.64.100" "RECEIVED: 250 2.1.0 ok {mx008}"
"DEBUG" 408 "2009-03-27 20:45:08.344" "SMTPClientConnection::~_ParseASCII() - 6"
"SMTPC" 408 7132 "2009-03-27 20:45:08.344" "213.165.64.100" "SENT: RCPT TO:<[email protected]>"
"DEBUG" 776 "2009-03-27 20:45:08.532" "SMTPClientConnection::_ParseASCII()"
"SMTPC" 776 7132 "2009-03-27 20:45:08.532" "213.165.64.100" "RECEIVED: 250 2.1.5 ok {mx008}"
"SMTPC" 776 7132 "2009-03-27 20:45:08.532" "213.165.64.100" "SENT: DATA"
"DEBUG" 776 "2009-03-27 20:45:08.532" "SMTPClientConnection::~_ParseASCII() - 7"
"DEBUG" 2056 "2009-03-27 20:45:08.579" "SMTPClientConnection::_ParseASCII()"
"SMTPC" 2056 7132 "2009-03-27 20:45:08.579" "213.165.64.100" "RECEIVED: 354 mx0.gmx.net Go ahead {mx008}"
"DEBUG" 2056 "2009-03-27 20:45:08.579" "SocketConnection::SendFileContents()"
"DEBUG" 2056 "2009-03-27 20:45:08.579" "SocketConnection::SendFileContents() - E2"
"SMTPC" 2056 7132 "2009-03-27 20:45:08.579" "213.165.64.100" "SENT: [nl]."
"DEBUG" 2056 "2009-03-27 20:45:08.579" "SMTPClientConnection::~_ParseASCII() - 8"
"DEBUG" 2064 "2009-03-27 20:45:08.782" "SMTPClientConnection::_ParseASCII()"
"SMTPC" 2064 7132 "2009-03-27 20:45:08.782" "213.165.64.100" "RECEIVED: 250 2.6.0 Message accepted {mx008}"
"SMTPC" 2064 7132 "2009-03-27 20:45:08.782" "213.165.64.100" "SENT: QUIT"
"DEBUG" 2064 "2009-03-27 20:45:08.782" "SMTPClientConnection::~_ParseASCII() - 9"
"DEBUG" 2052 "2009-03-27 20:45:08.829" "SMTPClientConnection::_ParseASCII()"
"SMTPC" 2052 7132 "2009-03-27 20:45:08.829" "213.165.64.100" "RECEIVED: 221 2.0.0 GMX Mailservices {mx008}"
"DEBUG" 2052 "2009-03-27 20:45:08.829" "Closing TCP/IP socket"
"DEBUG" 1132 "2009-03-27 20:45:08.829" "SD::~_InitiateExternalConnection-5"
"DEBUG" 1132 "2009-03-27 20:45:08.829" "Deleted TCPConnection"
"DEBUG" 1132 "2009-03-27 20:45:08.829" "Ending session 7132"
"DEBUG" 1132 "2009-03-27 20:45:08.829" "SD::~_DeliverToExternalAccounts-1"
"DEBUG" 1132 "2009-03-27 20:45:08.829" "SD::_CollectDeliveryResult"
"DEBUG" 1132 "2009-03-27 20:45:08.844" "AWStats::LogDeliverySuccess"
"DEBUG" 1132 "2009-03-27 20:45:08.844" "SD::~_CollectDeliveryResult"
"DEBUG" 1132 "2009-03-27 20:45:08.844" "Deleting message"
"DEBUG" 1132 "2009-03-27 20:45:08.844" "Deleting message file"
"APPLICATION" 1132 "2009-03-27 20:45:08.844" "SMTPDeliverer - Message 1481: Message delivery thread completed."

<-- END LOG -->


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 22:11 
Developer
Developer

Joined: 2003-11-21 01:09
Posts: 6303
Location: Sweden
Hi,

I was talking about the header - the content of the actual email message with the problem.

The log doesn't show the MIME From address, which is what your rule is set up to filter on.

I'm guessing that your filtering is just incorrect. For example, if the From header contains...

From: Your Name <[email protected]>

... that won't match *@gmail.com due to the ending >.


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 22:55 
New user
New user

Joined: 2009-03-27 15:42
Posts: 5
OK, I have sent a message from [email protected] to [email protected]
In the message Details the following header is shown:
From: <[email protected]>
To: <[email protected]>


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 23:02 
Developer
Developer

Joined: 2003-11-21 01:09
Posts: 6303
Location: Sweden
All good then...


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 23:14 
New user
New user

Joined: 2009-03-27 15:42
Posts: 5
No, the rounting is not working as it should, also the email with From: <[email protected]> is sent directly over MX, all rules with using the external SMTP Server seem to bee ignored as described before.


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-27 23:27 
Developer
Developer

Joined: 2003-11-21 01:09
Posts: 6303
Location: Sweden
So have you modified your rule in light of my previous respose?

The rule you say you have doesn't match the header you're trying to match against.


Top
 Profile  
 
 Post subject: Re: SMTP Outgoing Route Problem
PostPosted: 2009-03-28 11:13 
New user
New user

Joined: 2009-03-27 15:42
Posts: 5
OK, Thank you, now it works, I have added an asterisk at the end of the rule:

Global Rule 1
Criteria: FROM Wildcard *@gmx.net*
Actions: Send using Route and selected Route gmx.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 4 guests



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group