Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Andre Courchesne - Consu on December 09, 2002, 04:58:42 PM

Title: Having IMP use an alternate SMTP server
Post by: Andre Courchesne - Consu on December 09, 2002, 04:58:42 PM
Hi,

  Is there a way to configure IMP (https://myserver/webmail) so that it uses an alternate SMTP server for sending mails instead of trying to send it directly through port 25 (which my provider blocks)...

  Thanks,

Andre Courchesne
Title: Re: Having IMP use an alternate SMTP server
Post by: schotty on December 09, 2002, 05:35:58 PM
this has been answered several times. Please seach thru the forums
Title: Re: Having IMP use an alternate SMTP server
Post by: jb on December 09, 2002, 08:02:56 PM
Here's a better answer for you.

Go to this link and see if it helps.

http://forums.contribs.org/index.php?topic=15623.msg60155#msg60155

JB
Title: Re: Having IMP use an alternate SMTP server
Post by: Andre Courchesne - Consu on December 12, 2002, 04:43:56 PM
Hi,

  I just tried the redir stuff, and I still get the following in my qmail log:

@400000003df84b1530739e2c new msg 189616
@400000003df84b153074c70c info msg 189616: bytes 581 from om> qp 22412 uid 100
@400000003df84b160a5637a4 starting delivery 307: msg 189616 to remote andre.cour
chesne@ca.kontron.com
@400000003df84b160a5ae2f4 status: local 0/10 remote 1/20
@400000003df84b8f217f4f4c delivery 307: deferral: Sorry,_I_wasn't_able_to_establ
ish_an_SMTP_connection._(#4.4.1)/
@400000003df84b8f2180129c status: local 0/10 remote 0/20

  Any ideas?

Thanks,

Andre Courchesne
Title: (Solved) Having IMP use an alternate SMTP server
Post by: Andre Courchesne - Consu on January 09, 2003, 04:55:08 PM
Just for the information of anyone, I found out how to do it...

Off course qmail is the piece of code responsible for handling mails in e-smith 5. and IMP simply is the front-end if you would.

In order to have qmail use an alternate SMTP server for sending out mails, the following file need to be changed:
  /var/qmail/control/smtproutes

Simply add the following line to the end of the file:

  :my.smtp.server.to.use

Replace "my.smtp.server.to.use" by your provider smtp server, in my case Sympatico's smtp1.qc.sympatico.ca

Off course if you want to make that change permanent, you need to change the corresponding template and expand it.

Hope this helps peoples :-)

Andre Courchesne
www.net-forces.com
Title: Re: (Solved) Having IMP use an alternate SMTP server
Post by: Charlie Brady on January 09, 2003, 10:12:33 PM
Andre Courchesne - Consultant wrote:

> Off course if you want to make that change permanent, you
> need to change the corresponding template and expand it.

OTOH, you could just use the SMTP Smarthost feature which is already part of the standard email settings via the manager.

Charlie