Bug#688109: Patch for Readme.mail in debbugs package

Mike Gabriel <[email protected]>
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <20120919222210.70294v6cdjjlm99u__6919.63510257683$1348086268$gmane$org@mail.das-netzwerkteam.de>
tag #688109 patch
thanks

Hi Don,

attached you find a patch that improves the postfix documentation. It   
contains a changelog line already, so maybe a conflict needs to be   
resolved there.

Greets,
Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

tag #688109 patch
thanks

Hi Don,

attached you find a patch that improves the postfix documentation. It  
contains a changelog line already, so maybe a conflict needs to be  
resolved there.

Greets,
Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
0001-Update-postfix-section-in-Readme.mail.-Closes-688109.patch (text/x-diff, 4.2 KB)
>From dbdf2f7b944c76f751df4c6d1da6afa77faa3d05 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <[email protected]>
Date: Wed, 19 Sep 2012 22:06:17 +0200
Subject: [PATCH] Update postfix section in Readme.mail. Closes: #688109.

---
 debian/README.mail |   54 +++++++++++++++++++++++++++++++++++++++-------------
 debian/changelog   |    1 +
 2 files changed, 42 insertions(+), 13 deletions(-)

diff --git a/debian/README.mail b/debian/README.mail
index 3343bf7..46d7772 100644
--- a/debian/README.mail
+++ b/debian/README.mail
@@ -6,6 +6,7 @@ Config
 Be sure to set the $gMailer variable correctly in /etc/debbugs/config.
 The options are (all lower case) exim, qmail and sendmail.
 
+
 Exim 4
 ------
 The exim 4 setup supports virtual domains. This doesn't hurt on a
@@ -122,6 +123,7 @@ debbugs_transport:
     mail for those zones ("debbugs_router") and "send" the mail using a pipe
     ("debbugs_transport").
 
+
 Qmail
 -----
 From Tommi Virtanen ([email protected]), amended by Daniel Ruoso
@@ -211,36 +213,60 @@ Now the final step: run sendmailconfig to regenerate sendmail.cf and
 restart sendmail with the new configuration. Your system should now
 be up and running. Congratulations!
 
+
 Postfix
 -------
-It seems Bdale isn't around currently, so I'll just mail this
-here directly. This is a short description of how to get debbugs
-working with postfix. If someone can verify this and give me some
-feedback if would be appreciated.
-
-Lets assume that you are going to install bugs.domain.net, and you
+Let's assume that you are going to install bugs.domain.net, and you
 are going to run it on the machine master.domain.net.
 
 DNS setup: point the MX to the machine running debbugs:
 
 	bugs.domain.net		MX	50	master.domain.net.
 
-In /etc/postfix/main.cf enable the transport maps by inserting the
-following line:
+For postfix we have to do three things now:
 
-	transport_maps = hash:/etc/postfix/transport
+ 1. Open postfix for any recipient address on the domain
+    bugs.domain.net
+ 2. Create a transport map to the debbugs script called
+    ,,receive''.
+ 3. Make sure that mails are handed individually into the
+    debbugs pipe. The receive script can only process mails
+    with _one_ recipient.
 
-Now create /etc/postfix/transport and insert:
+So, create /etc/postfix/transport and insert:
 
 	bugs.domain.net        debbugs:
 
 This tells postfix to use the debbugs transport agent to deliver any
 mail send to bugs.domain.net. Now we need to make a database from that
+map, so that postfix can use:
+
+	$ postmap hash:/etc/postfix/transport
+
+So, create /etc/postfix/debbugs-recipients and put:
+
+	@bugs.domain.net          ACCEPT
+
+into it.
+
+Here, we also need to make a database from that map, so
 that postfix can use:
 
-	# postmap hash:transport
+	# postmap hash:/etc/postfix/debbugs-recipients
+
+In /etc/postfix/main.cf we enable the transport and local recipient
+map by inserting the following lines:
+
+	transport_maps = hash:/etc/postfix/transport
+	# debbugs transport
+	local_recipient_maps = hash:/etc/postfix/non-unix-users
+	transport_maps = hash:/etc/postfix/transport
+	debbugs_destination_recipient_limit = 1
 
-Now we need to teach postfix what the debbugs transport agent is. Edit
+The last line in the block above assures that mails pour into
+the debbugs receive scripts on a one by one recipient basis.
+
+At last we need to teach postfix what the debbugs transport agent is. Edit
 /etc/postfix/master.cf and add:
 
 	debbugs   unix  -       n       n       -       -       pipe
@@ -256,7 +282,9 @@ Finally add bugs.domain.net to mydestination in main.cf:
 
 Now that all this is done, restart postfix and it should be working..
 
-Wichert.
+Wichert
+Updated+modified by Mike (20120919)
+
 
 Procmail and SpamAssassin
 -------------------------
diff --git a/debian/changelog b/debian/changelog
index 137bfd2..b83bd9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,7 @@ debbugs (2.4.2~exp2) UNRELEASED; urgency=low
   * Remove mailing list markers of the form [<list-name>] from the subject
     line to avoid duplication (and more) of the bug number when replying to
     bug postings.
+  * Update postfix section in Readme.mail. Closes: #688109.
 
  -- Don Armstrong <[email protected]>  Wed, 25 Aug 2010 01:57:38 -0700
 
-- 
1.7.10
0001-Update-postfix-section-in-Readme.mail.-Closes-688109.patch (text/x-diff, 4.2 KB)
>From dbdf2f7b944c76f751df4c6d1da6afa77faa3d05 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <[email protected]>
Date: Wed, 19 Sep 2012 22:06:17 +0200
Subject: [PATCH] Update postfix section in Readme.mail. Closes: #688109.

---
 debian/README.mail |   54 +++++++++++++++++++++++++++++++++++++++-------------
 debian/changelog   |    1 +
 2 files changed, 42 insertions(+), 13 deletions(-)

diff --git a/debian/README.mail b/debian/README.mail
index 3343bf7..46d7772 100644
--- a/debian/README.mail
+++ b/debian/README.mail
@@ -6,6 +6,7 @@ Config
 Be sure to set the $gMailer variable correctly in /etc/debbugs/config.
 The options are (all lower case) exim, qmail and sendmail.
 
+
 Exim 4
 ------
 The exim 4 setup supports virtual domains. This doesn't hurt on a
@@ -122,6 +123,7 @@ debbugs_transport:
     mail for those zones ("debbugs_router") and "send" the mail using a pipe
     ("debbugs_transport").
 
+
 Qmail
 -----
 From Tommi Virtanen ([email protected]), amended by Daniel Ruoso
@@ -211,36 +213,60 @@ Now the final step: run sendmailconfig to regenerate sendmail.cf and
 restart sendmail with the new configuration. Your system should now
 be up and running. Congratulations!
 
+
 Postfix
 -------
-It seems Bdale isn't around currently, so I'll just mail this
-here directly. This is a short description of how to get debbugs
-working with postfix. If someone can verify this and give me some
-feedback if would be appreciated.
-
-Lets assume that you are going to install bugs.domain.net, and you
+Let's assume that you are going to install bugs.domain.net, and you
 are going to run it on the machine master.domain.net.
 
 DNS setup: point the MX to the machine running debbugs:
 
 	bugs.domain.net		MX	50	master.domain.net.
 
-In /etc/postfix/main.cf enable the transport maps by inserting the
-following line:
+For postfix we have to do three things now:
 
-	transport_maps = hash:/etc/postfix/transport
+ 1. Open postfix for any recipient address on the domain
+    bugs.domain.net
+ 2. Create a transport map to the debbugs script called
+    ,,receive''.
+ 3. Make sure that mails are handed individually into the
+    debbugs pipe. The receive script can only process mails
+    with _one_ recipient.
 
-Now create /etc/postfix/transport and insert:
+So, create /etc/postfix/transport and insert:
 
 	bugs.domain.net        debbugs:
 
 This tells postfix to use the debbugs transport agent to deliver any
 mail send to bugs.domain.net. Now we need to make a database from that
+map, so that postfix can use:
+
+	$ postmap hash:/etc/postfix/transport
+
+So, create /etc/postfix/debbugs-recipients and put:
+
+	@bugs.domain.net          ACCEPT
+
+into it.
+
+Here, we also need to make a database from that map, so
 that postfix can use:
 
-	# postmap hash:transport
+	# postmap hash:/etc/postfix/debbugs-recipients
+
+In /etc/postfix/main.cf we enable the transport and local recipient
+map by inserting the following lines:
+
+	transport_maps = hash:/etc/postfix/transport
+	# debbugs transport
+	local_recipient_maps = hash:/etc/postfix/non-unix-users
+	transport_maps = hash:/etc/postfix/transport
+	debbugs_destination_recipient_limit = 1
 
-Now we need to teach postfix what the debbugs transport agent is. Edit
+The last line in the block above assures that mails pour into
+the debbugs receive scripts on a one by one recipient basis.
+
+At last we need to teach postfix what the debbugs transport agent is. Edit
 /etc/postfix/master.cf and add:
 
 	debbugs   unix  -       n       n       -       -       pipe
@@ -256,7 +282,9 @@ Finally add bugs.domain.net to mydestination in main.cf:
 
 Now that all this is done, restart postfix and it should be working..
 
-Wichert.
+Wichert
+Updated+modified by Mike (20120919)
+
 
 Procmail and SpamAssassin
 -------------------------
diff --git a/debian/changelog b/debian/changelog
index 137bfd2..b83bd9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,7 @@ debbugs (2.4.2~exp2) UNRELEASED; urgency=low
   * Remove mailing list markers of the form [<list-name>] from the subject
     line to avoid duplication (and more) of the bug number when replying to
     bug postings.
+  * Update postfix section in Readme.mail. Closes: #688109.
 
  -- Don Armstrong <[email protected]>  Wed, 25 Aug 2010 01:57:38 -0700
 
-- 
1.7.10
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJQWiZiAAoJEJr0azAldxsxM6oP/0sPCFGjLseu78F47BjCQ4eu
MR9y1ZdAwXRnC45/1m5Re3+QG8ut2O6g3K7bfKuiGA40iZNbASH7fIIHSj/V8ECM
Ujs85nCm3XomQ78yHAQcZ7Bf837UWI4BtjyExPiDzSlTphH3YxTHnYy8O4t/Yjoq
udYI89qeKKyfdvlD15vSWaI6/s4Qi+fGvURuAcTJ7MpeNbih0xxUMTUPk/HcSEkW
KuQv8XR3gpPlROB/r1M3siVWhsVZxWA2e5lUUmSEQTkgSYB9IXdcddhzchE3U1p1
Fh2rEi8ZF9FHm0R5/70PwlvssbSElgcQm121+eJCJCbQHOgroROSfenvwr3kpwok
dxE1XAcmSwFGwyUUssA3fYl2LPSAy0H/ZjymY3dGRYDWbBIghFk3ruIvMzhcYAb+
LKyk6Qjc5cL+8Lk4XrZCBbsxN8Y29pdd0ioku9p16Romv7WCaOz06kiDhHf4f7zX
oYxuOx3QjFNn5MFOa3ovjvrnKTxn+Iso3DsywKN3UOdmJSUQ53YqBW+9twN1bjYQ
Kj9SU1pxVA95Hc6eLpWOT0zOheD2VWR+x8FJms45sZEmgO9X51WC9AGnthsjHvgE
go67mLV6M+ae7cfgfi1xDYX4SDl9TlVWtu3Frqxt9186fx+FMMNbOp097rSFh13I
dJpOlMYyTt69b8eHL2i5
=8Yon
-----END PGP SIGNATURE-----
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJQWilyAAoJEJr0azAldxsxnzcQALiLUrJZIyv/La2XXLK61Y0+
5fT1LNbctg4WpMGYfB1VRCCxu1A2AW8Qzgw0bsmHRN8T2aF24M5BKJZ5nxTG1bFb
NQhLC8oINfgDQv4PD6eyOZ3F7NQVPo4kwQGmyy21bRci+fX+CLZdjpSra0o5LZOh
BgHuyQQCISMQDKBPEWGpvS/yDyv8RjWLlfl6+DL59EttdybkGDp+XkjXNlV/XCCH
IrV8/QRfzjg6RkrU8KbYtm7SkLBV7UdKsQxRH7F6Dm5T5dPBxKwaYL5AO7ZYOKzX
emth1RXH5s8AFgO8LppmVwlmu3D8rArtXbaAUonPQ0o/B8d5F16IN97JKdG1gNtC
P/hshuezMyfKGggz+3SceB631Xg9wny9sMFR90jcTXrE0Ei3AzimPiNVoseVAFXe
7d7TOkTKbktA4TKVc5RlNA41xITN2YvXbZ3ikcp8f5/KAcYkEY0ZGDnP/UYtrxfw
g/xUd9/mtTA7fpJDh4FVE/KxB1va45kuPRXv1ODQp30mMy9q48reX2e5JGj7JldP
HMoUiplNofhPs363D7I7XiLKeLhPzA2LH63aTic547MVGOoKUNf3WtWSgXg6EhRC
Ovy9/3JfWQE9XoZvsX1kSxGBiv8D0AIHs9JPnRNgsChgqelU9ZqzYJZAhhEqDItp
rcwYwmUG2eXpyPjXMhX9
=kZo8
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.