Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Documentation and Knowledge Base > Outbind


Posted by: karpa13a Jan 25 2008, 10:05 PM
can i make outbind for sending mail to the world thru one (not default) link?
or any article that describe process for outbound connections to remote port 25 placed on specific ip? (on linux 2.6.x)

i'm already have 2 isp links that accepts mail from world (on xmail).

Posted by: hschneider Jan 28 2008, 07:26 AM
In server.tab add

"SmtpConfig" "OutBind=xxx.xxx.xxx.xxx"

Posted by: karpa13a Jan 28 2008, 07:37 AM
1.24:
"SmtpConfig" "OutBind=1.2.3.4"
messages sending thru default interface sad.gif

Posted by: hschneider Jan 28 2008, 07:40 AM
The IP has to be available while XMail is starting or running. So you should include server stop and start in your IP up and down scripts. Also make sure that you use the latest XMail version for this.

Posted by: karpa13a Jan 28 2008, 08:01 AM
1.25:
"SmtpConfig" "OutBind=1.2.3.4"
messages sending thru default interface sad.gif

Posted by: hschneider Jan 28 2008, 08:14 AM
Checked the routing for this IP ?

QUOTE

    OutBind
        Sets the IP address of the network interface that should be used
        when connecting to the remote host. This configuration should be
        used carefully, because XMail will fail if the selected IP of the
        interface does not have a route to the remote host using such IP.



Posted by: karpa13a Jan 28 2008, 08:28 AM
route -n:
[...]
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp21
0.0.0.0 0.0.0.0 0.0.0.0 U 1 0 0 ppp20
0.0.0.0 195.54.1.1 0.0.0.0 UG 2 0 0 eth0

ifconfig ppp20:
ppp20 Link encap:Point-to-Point Protocol
inet addr:81.89.1.2 P-t-P:81.89.1.1 Mask:255.255.255.255
ifconfig ppp21:
ppp21 Link encap:Point-to-Point Protocol
inet addr:83.142.1.2 P-t-P:83.142.1.1 Mask:255.255.255.255

trying to send mail thru ppp20, but sended thru ppp21

Posted by: hschneider Jan 28 2008, 08:54 AM
Pls forward this directly to Davidel at xmailserver.org.



Posted by: karpa13a Jan 31 2008, 11:06 AM
it was done thru
"SmtpGwConfig" "OutBind=1.2.3.4"

Posted by: hschneider Feb 3 2008, 01:06 PM
Thanks for the feedback !

Posted by: LDad Jun 18 2008, 01:11 AM
Hi People,

same trouble with xmail 1.25 on win.

To send a mail xmail uses always the wrong ip x.x.x.2 not x.x.x.3. I tested both given versions

"SmtpConfig" "Outbind=x.x.x.3"
"SmtpGwConfig" "Outbind=x.x.x.3"

Any suggestion?

Many thanks in advance

LDad

Posted by: hschneider Jun 18 2008, 07:04 AM
Did you use real TABs between the variable's name and content ?
Also restarted XMail ?

Posted by: LDad Jun 18 2008, 07:29 AM
Yes i did,

i think it could be a routing problem . . .

my default route (win) looks like this

net mask gw interf metrik
0.0.0.0 0.0.0.0 x.x.x.6 x.x.x.2 20

i will try to add

0.0.0.0 0.0.0.0 x.x.x.6 x.x.x.3 20

I 'll keep you informed

LDad

Posted by: YorYor Oct 6 2008, 02:51 PM
QUOTE (LDad @ Jun 18 2008, 01:11 AM)
"SmtpGwConfig" "Outbind=x.x.x.3"

I've just faced the same problem and finally fixed it.
It has to be
"SmtpGwConfig" "OutBind=x.x.x.3"

Case sensitive it seems, with a capital B in OutBind.

Posted by: hschneider Oct 6 2008, 04:34 PM
Thanks for the feedback here !

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)