If you're using postfix you can just edit your main.cf and make sure you use inet_interfaces=eth0 or smtp_bind_address=46.55.253.244.
On Sun, Apr 10, 2016 at 12:59 PM, Steve Perkins <[email protected]> wrote: > It's not roundcube its the smtp server you are using. You will need to > bind that to the specific IP address you want it to use. > > Without that, generally it will bind to all available addresses. Thus when > the virtual adapters are down it only binds to the 'real' IP. When the > virtual adapters are up it will bind to them all and will use whichever is > available first when sending. > > > > > On 10-04-2016 16:50, Svilen Arsov wrote: > > Hello, > > > I have a problem with round cube and my network. > > I have 3 ips and the OS is Linux Debian: > > - eth0 - 46.55.253.244 - Ethernet > - eth0:0 - 46.55.253.245- Ethernet (Virtual) > - eth0:1 - 46.55.253.246- Ethernet (Virtual) > > When adding the virtual networks round cube is connecting and sending > e-mails from x.x.x.245. Pls see the following log: > > Apr 10 11:12:05 ns1 dovecot: imap-login: Login: user=<[email protected]>, > method=PLAIN, rip=46.55.253.245, lip=46.55.253.244, mpid=11257, > session=<9wjJ+xww5gAuN/31> > > When the virtual networks are down, then roundcube works fine: > > Apr 10 11:32:05 ns1 dovecot: imap-login: Login: user=<[email protected]>, > method=PLAIN, rip=46.55.253.244, lip=46.55.253.244, mpid=11257, > session=<9wjJ+xww5gAuN/31> > > > > In config.ins.php the code is: > > $config['default_host'] = 'pcexpert.bg'; > > When the code changes to $config['default_host'] = 'localhost' , roundcube > is connecting 127.0.0.1, but sending e-mails from 46.55.253.245 > > Log: > > Apr 10 11:32:05 ns1 dovecot: imap-login: Login: user=<[email protected]>, > method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11257, > session=<9wjJ+xww5gAuN/31> > > > > > Pls advise, how can roundcube connect and send e-mails to the real ip > 46.55.253.244, when having vitual networks. > > > > Best Regards, > > Svilen > > > _______________________________________________ > Roundcube Users mailing list > [email protected] > http://lists.roundcube.net/mailman/listinfo/users > > > _______________________________________________ > Roundcube Users mailing list > [email protected] > http://lists.roundcube.net/mailman/listinfo/users > -- Regards, M http://madalin.eu
_______________________________________________ Roundcube Users mailing list [email protected] http://lists.roundcube.net/mailman/listinfo/users
