Index: [thread] [date] [author] [stats]
  From: Juergen Daubert <jdaubert@gmail.com>
  To  : <masqmail@marmaro.de>
  Date: Tue, 25 Oct 2011 11:26:48 +0200

Re: [masqmail] problem using wrapper option for smtp.google.com

On Mon, Oct 17, 2011 at 12:25:08PM +0200, Juergen Daubert wrote:
> On Sat, Oct 15, 2011 at 01:52:51PM +0200, markus schnalke wrote:
> > 
> > @Juergen:
> > 
> > Thanks a lot for your help.
> > 
> > Is it correct that you have a working gmail route that you use? You
> > you prepare a prototype from it for the examples section.
> > 
> 
> Yeah, that's correct, I've a working configuration for 
> masqmail/gmail. 
> 
> I'm a bit busy at the moment, but will try to prepare a 
> minimal useful setup for gmail next week.

as promised here my working masqmail-configuration for using 
gmail as a mailhub. This is a minimal setup, for my daily work
I use a extended version with several routes, mda setup etc.


Prerequisite:

  I'm user juergen on host localhost and masqmail is running
  as the SMTP daemon on this host and is installed with a
  symlink pointing from masqmail to sendmail.
  
  I've tested the configuration with mutt and the heirloom 
  mailx client [1].
  Both clients has default configurations without any special
  things like mail-header manipulation.


Configuration:

  $:~> cat /etc/masqmail/masqmail.conf
  host_name = "localhost"
  online_query = "/bin/cat /var/run/masqmail/masqmail-route"
  online_routes.gmail = "/etc/masqmail/gmail.route"

  $:~> cat /var/run/masqmail/masqmail-route ; echo
  gmail

  $:~> cat /etc/masqmail/gmail.route
  instant_helo=true
  wrapper="/usr/bin/openssl s_client -quiet -starttls smtp -connect smtp.gmail.com:25 2>/dev/null"
  auth_name = "login"
  auth_login = "jdaubert@gmail.com"
  auth_secret = "xxxxxxxxxxxxxxxxxxxx"


Remarks:

  That's all and as to be expected nothing special.
  Gmail rewrites the mail header from juergen@localhost to the
  correct gmail address, but I'd prefer to set them
  explicit by myself. This is one of the strengths of masqmail
  and can be done by something like that in gmail.route:
  
  map_return_path_addresses = "juergen: jdaubert@gmail.com"
  map_h_from_addresses = "juergen: Juergen Daubert <jdaubert@gmail.com>"



This email was sent with mutt via gmail with the above setup.


HTH and best regards
Juergen


[1] http://heirloom.sourceforge.net/mailx.html


Index: [thread] [date] [author] [stats]