Closed klonodo closed 9 years ago
Ok, i have figured it out. I did a check if connection.relaying == true
in data_post hook if it is then i've did connection.transaction.notes.isrelay = true;
.
After that i've added check inside get_mx to see if (connection.transaction.notes.isrelay == true)
and if it is then i am doing outbound.lookup_mx...
if not then i just return next();
I have a problem with haraka running in loop when using queue/lmtp and using dovecot. I have for example 2 IPs on the SMTP server : 1.1.1.1 and 1.1.1.2 , normally Haraka will use always 1.1.1.1 to connect to outbound SMTP servers for delivering, that's why i am using this plugin:
}
I am using it because i need to set outgoing IP as 1.1.1.2, becuase i have this IP in domain MX records. If i send mail everything is ok, but when i receive email then i see loop hell.
In my lmtp.ini i have :
If i turn off that custom get_mx plugin then Haraka uses 1.1.1.1 IP and there is no loops. Anyone can help ?