# HG changeset patch # User meillo@marmaro.de # Date 1221757072 -7200 # Node ID a8c310973cbe051e4f22dcd7d675b1014a630938 # Parent b95795affb63076594657d2b495fb54096e96ed0 added (incomplete) doc by geord lohrer diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/HandlingMasqmail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/HandlingMasqmail.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,61 @@ + + + + + + +Multiple E-Mail accounts with MasqMail + + + + + + + + + + + + + + + Next: Receiving and sending mails +
+
+ + +

Multiple E-Mail accounts with MasqMail

+

Georg Lohrer +
Georg.Lohrer@web.de +

+

+ + + +

+
+Georg Lohrer +2001-03-23 +
+ + + diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/node1.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/node1.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,109 @@ + + + + + + +Receiving and sending mails with multiple accounts + + + + + + + + + + + + + + + + + + Next: How to setup MasqMail + Up: Multiple E-Mail accounts with + Previous: Multiple E-Mail accounts with +
+
+ + +

+Receiving and sending mails with multiple accounts +

+My system is running under Linux SuSE 7.1 with firewall, masquerading +and ISDN-dial-up connection (nothing of that will be described +below). It was a quite lot of work to get all +components accordingly running for doing the job they are intended to +do. + +

+First of all, lets have a look at the big picture -- the real thing +and my requirements are: + +

+In short, I want to receive mails from different E-Mail providers, +manage the mail within one application and send out mails via +different providers. Especially the last point is under LINUX a +big obstacle, because of being a native server system it seems to be +no way to go outside with different faces. +
+Solving this leads me towards the following bunch of applications +building my working environment: + +
    +
  1. Mail-Transport-Agent (MTA) MasqMail +
  2. +
  3. Mail-User-Agent (MUA) mutt +
  4. +
  5. Mail-Delivery-Agent procmail +
  6. +
+ +

+


+ +Subsections + + + +
+ + Next: How to setup MasqMail + Up: Multiple E-Mail accounts with + Previous: Multiple E-Mail accounts with + +
+Georg Lohrer +2001-03-23 +
+ + + diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/node10.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/node10.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,57 @@ + + + + + + +How to run the whole thing + + + + + + + + + + + + + + + + + + Next: About this document ... + Up: Receiving and sending mails + Previous: How to setup procmail +
+
+ + +

+
+How to run the whole thing +

+First of all you have to enable SMTP-transfers via port 25 +from inside to outside (set up your firewall-rules +accordingly). Second, you can write your E-Mails within mutt, send them +and they will be queued. Third, you run +
+sendmail -g -qo all
+
+And you have sent all of your mails and received all waiting mail from +your provider. + +

+
+Georg Lohrer +2001-03-23 +
+ + + diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/node2.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/node2.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,76 @@ + + + + + + +How to setup MasqMail + + + + + + + + + + + + + + + + + + Next: masqmail.conf + Up: Receiving and sending mails + Previous: Receiving and sending mails +
+
+ + +

+How to setup MasqMail +

+MasqMail has to be compiled and installed in a proper way. If +you need authorization support, configure with +-enable-auth. +For continuing running already available scripts of sendmail you +could set a sym-link after installation: +
+su
+cd /usr/sbin
+mv sendmail sendmail.orig
+ln -s /usr/sbin/masqmail /usr/sbin/sendmail
+
+MasqMail will be set up by several files. For getting into +closer contact with this stuff, I want to settle the following +scenario: + + +I am using MasqMail's get-functionality, so I need the +following files (all originally located in /etc: +

+
+Georg Lohrer +2001-03-23 +
+ + + diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/node3.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/node3.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,66 @@ + + + + + + +masqmail.conf + + + + + + + + + + + + + + + + + + Next: masqmail/gmx_foo.route + Up: Receiving and sending mails + Previous: How to setup MasqMail +
+
+ + +

+masqmail.conf +

+The configuration file of MasqMail. The + following lines must be set: +
+host_name="picard"
+local_hosts="picard;picard.oehningen.de;;localhost"
+local_nets="*.oehningen.de"
+listen_addresses="picard:25;localhost:25"
+remote_port=25
+spool_dir="/var/spool/masqmail"
+mail_dir="/var/spool/mail"
+use_syslog=false
+log_dir="/var/masqmail"
+do_queue=false
+mda="/usr/bin/procmail -Y -d ${rcpt_local}"
+connect_route.all = "/etc/masqmail/gmx.route;/etc/masqmail/web.route"
+get.gmx = /etc/masqmail/gmx.get
+get.web = /etc/masqmail/web.get
+
+In the lower part you see the expected paths towards the two different +E-Mail accounts. +

+
+Georg Lohrer +2001-03-23 +
+ + + diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/node4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/node4.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,86 @@ + + + + + + +masqmail/gmx_foo.route + + + + + + + + + + + + + + + + + + Next: masqmail/web_foo.route + Up: Receiving and sending mails + Previous: masqmail.conf +
+
+ + +

+masqmail/gmx_foo.route +

+
+allowed_mail_locals = "gmx_foo"
+mail_host = "smtp.web.de"
+do_correct_helo = true
+map_return_path_addresses = "gmx_foo: foo@gmx.net"
+map_h_from_addresses = "gmx_foo: foo <foo@gmx.net>"
+auth_name="cram-md5"
+auth_login="1234567"
+auth_secret="password"
+pop3_login = "/etc/masqmail/gmx.get"
+
+Especially the map commands need a closer look. These lines +map local parts of the given address towards a full RFC 822 compliant +email address. map_return_path_addresses does this for the +passed Return address, map_h_from_addresses for the given +From part. +
+But, pay attention! As you can see the strange name gmx_foo in +front of both items has never been seen until now. And in +allowed_mail_locals you see the same item. What about this? +
+An E-Mail will be passed towards the E-Mail provider giving a so +called envelope. This construction envelopes the real E-Mail +and passes important things like the address of the sender and the +address of the receiver to the E-Mail provider. These envelope date +will never be seen again on the receiver's site, because the MTA +running on receiver's host will delete them. But only the envelope is +valid for any MTA distinguishing the route towards the receiver. So, +it must be a valid address. +
+Per default MasqMail uses the current user-name as +Envelope-From:. If we want to use different E-Mail accounts +with mapping of addresses via the above shown map_return_path_addresses and +map_h_from_addresses we have to to mutilate the envelope +data! That could be done very easily within mutt. +
+ + Next: masqmail/web_foo.route + Up: Receiving and sending mails + Previous: masqmail.conf + +
+Georg Lohrer +2001-03-23 +
+ + + diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/node5.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/node5.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,56 @@ + + + + + + +masqmail/web_foo.route + + + + + + + + + + + + + + + + + + Next: masqmail/gmx_foo.get + Up: Receiving and sending mails + Previous: masqmail/gmx_foo.route +
+
+ + +

+masqmail/web_foo.route +

+
+allowed_mail_locals = "web_foo"
+mail_host = "smtp.web.de"
+do_correct_helo = true
+map_return_path_addresses = "web_foo: foo@web.de"
+map_h_from_addresses = "web_foo: foo <foo@web.de>"
+# authorization needed
+pop3_login = "/etc/masqmail/web.get"
+
+In principle the same file contents for a different provider. +

+
+Georg Lohrer +2001-03-23 +
+ + + diff -r b95795affb63 -r a8c310973cbe docs/georg-lohrer_handlingmasqmail/node7.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/georg-lohrer_handlingmasqmail/node7.html Thu Sep 18 18:57:52 2008 +0200 @@ -0,0 +1,56 @@ + + + + + + +masqmail/web_foo.get + + + + + + + + + + + + + + + + + + Next: How to setup mutt + Up: Receiving and sending mails + Previous: masqmail/gmx_foo.get +
+
+ + +

+masqmail/web_foo.get +

+
+protocol=pop3
+server = pop3.web.de
+user="1234567"
+pass="password"
+address=foo@localhost
+do_keep=false
+do_uidl=false
+max_size=50000
+
+

+
+Georg Lohrer +2001-03-23 +
+ + +