1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-sysadm] [sysadmin-commits] [2674] clean postfix module, rework the layout and split it in several file
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5Bsysadmin-commits%5D%20%5B2674%5D%20clean%20postfix%20module%2C%0A%20rework%20the%20layout%20and%20split%20it%20in%20several%20file&In-Reply-To=%3CCA%2BCX%2BbhJBjDNvSctPpr%2BTFtLid5zAp_DFMo07uxOeize_oLSSw%40mail.gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="004302.html">
<LINK REL="Next" HREF="004306.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-sysadm] [sysadmin-commits] [2674] clean postfix module, rework the layout and split it in several file</H1>
<B>Pascal Terjan</B>
<A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5Bsysadmin-commits%5D%20%5B2674%5D%20clean%20postfix%20module%2C%0A%20rework%20the%20layout%20and%20split%20it%20in%20several%20file&In-Reply-To=%3CCA%2BCX%2BbhJBjDNvSctPpr%2BTFtLid5zAp_DFMo07uxOeize_oLSSw%40mail.gmail.com%3E"
TITLE="[Mageia-sysadm] [sysadmin-commits] [2674] clean postfix module, rework the layout and split it in several file">pterjan at gmail.com
</A><BR>
<I>Thu Mar 22 20:26:11 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="004302.html">[Mageia-sysadm] About the old HDDs we changed in February
</A></li>
<LI>Next message: <A HREF="004306.html">[Mageia-sysadm] [sysadmin-commits] [2674] clean postfix module, rework the layout and split it in several file
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4305">[ date ]</a>
<a href="thread.html#4305">[ thread ]</a>
<a href="subject.html#4305">[ subject ]</a>
<a href="author.html#4305">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>We seem to reject all mails to MLs on alamut:
Mar 22 20:18:08 alamut postfix/smtpd[1384]: NOQUEUE: reject: RCPT from
valstar.mageia.org[212.85.158.147]: 450 4.1.1 <
<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">packages-commits at ml.mageia.org</A>>: Recipient address rejected: User unknown
in local recipient table; from=<<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">schedbot at valstar.mageia.org</A>> to=<
<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">packages-commits at ml.mageia.org</A>> proto=ESMTP helo=<valstar.mageia.org>
Mar 22 20:18:08 alamut postfix/smtpd[1385]: NOQUEUE: reject: RCPT from
valstar.mageia.org[212.85.158.147]: 450 4.1.1 <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">changelog at ml.mageia.org</A>>:
Recipient address rejected: User unknown in local recipient table; from=<
<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">schedbot at valstar.mageia.org</A>> to=<<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">changelog at ml.mageia.org</A>> proto=ESMTP helo=<
valstar.mageia.org>
Reported by AL13N as bugzilla fails to send email and gives an error
On Thu, Mar 22, 2012 at 15:18, <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A>> wrote:
><i> **
</I>><i> Revision 2674 Author misc Date 2012-03-22 16:18:24 +0100 (Thu, 22 Mar
</I>><i> 2012) Log Message
</I>><i>
</I>><i> clean postfix module, rework the layout and split it in several file
</I>><i>
</I>><i> Modified Paths
</I>><i>
</I>><i> - puppet/manifests/nodes/alamut.pp<#1363afcdfc8acd3f_puppetmanifestsnodesalamutpp>
</I>><i> - puppet/manifests/nodes/krampouezh.pp<#1363afcdfc8acd3f_puppetmanifestsnodeskrampouezhpp>
</I>><i> - puppet/modules/postfix/manifests/init.pp<#1363afcdfc8acd3f_puppetmodulespostfixmanifestsinitpp>
</I>><i>
</I>><i> Added Paths
</I>><i>
</I>><i> - puppet/modules/postfix/manifests/server/
</I>><i> - puppet/modules/postfix/manifests/server/primary.pp<#1363afcdfc8acd3f_puppetmodulespostfixmanifestsserverprimarypp>
</I>><i> - puppet/modules/postfix/manifests/server/secondary.pp<#1363afcdfc8acd3f_puppetmodulespostfixmanifestsserversecondarypp>
</I>><i> - puppet/modules/postfix/manifests/server.pp<#1363afcdfc8acd3f_puppetmodulespostfixmanifestsserverpp>
</I>><i> - puppet/modules/postfix/manifests/simple_relay.pp<#1363afcdfc8acd3f_puppetmodulespostfixmanifestssimple_relaypp>
</I>><i>
</I>><i> Modified: puppet/manifests/nodes/alamut.pp
</I>><i> ===================================================================
</I>><i> --- puppet/manifests/nodes/alamut.pp 2012-03-22 15:18:21 UTC (rev 2673)
</I>><i> +++ puppet/manifests/nodes/alamut.pp 2012-03-22 15:18:24 UTC (rev 2674)
</I>><i> @@ -20,7 +20,7 @@
</I>><i> include transifex
</I>><i> include bugzilla
</I>><i> include sympa::server
</I>><i> - include postfix::primary_smtp
</I>><i> + include postfix::server::primary
</I>><i>
</I>><i> # temporary, just the time the vm is running there
</I>><i> host { 'friteuse':
</I>><i> Modified: puppet/manifests/nodes/krampouezh.pp
</I>><i> ===================================================================
</I>><i> --- puppet/manifests/nodes/krampouezh.pp 2012-03-22 15:18:21 UTC (rev 2673)
</I>><i> +++ puppet/manifests/nodes/krampouezh.pp 2012-03-22 15:18:24 UTC (rev 2674)
</I>><i> @@ -5,7 +5,7 @@
</I>><i> #
</I>><i> #include common::default_mageia_server
</I>><i> include common::default_mageia_server_no_smtp
</I>><i> - include postfix::secondary_smtp
</I>><i> + include postfix::server::secondary
</I>><i> include blog::base
</I>><i> include blog::db_backup
</I>><i> include mysql::server
</I>><i> Modified: puppet/modules/postfix/manifests/init.pp
</I>><i> ===================================================================
</I>><i> --- puppet/modules/postfix/manifests/init.pp 2012-03-22 15:18:21 UTC (rev 2673)
</I>><i> +++ puppet/modules/postfix/manifests/init.pp 2012-03-22 15:18:24 UTC (rev 2674)
</I>><i> @@ -1,71 +1,13 @@
</I>><i> class postfix {
</I>><i> - class base {
</I>><i> - package { [postfix,nail]: }
</I>><i> + package { ['postfix', 'nail']: }
</I>><i>
</I>><i> - service { postfix:
</I>><i> - subscribe => Package['postfix'],
</I>><i> - }
</I>><i> -
</I>><i> - file { '/etc/postfix/main.cf':
</I>><i> - require => Package["postfix"],
</I>><i> - content => "",
</I>><i> - notify => Service['postfix'],
</I>><i> - }
</I>><i> + service { 'postfix':
</I>><i> + subscribe => Package['postfix'],
</I>><i> }
</I>><i>
</I>><i> -
</I>><i> - class simple_relay inherits base {
</I>><i> - File['/etc/postfix/main.cf'] {
</I>><i> - content => template("postfix/simple_relay_main.cf"),
</I>><i> - }
</I>><i> + file { '/etc/postfix/main.cf':
</I>><i> + require => Package['postfix'],
</I>><i> + content => '',
</I>><i> + notify => Service['postfix'],
</I>><i> }
</I>><i> -
</I>><i> - class smtp_server inherits base {
</I>><i> - include postgrey
</I>><i> - include amavis
</I>><i> - include spamassassin
</I>><i> -
</I>><i> - File['/etc/postfix/main.cf'] {
</I>><i> - content => template("postfix/main.cf"),
</I>><i> - }
</I>><i> -
</I>><i> - file { '/etc/postfix/transport_regexp':
</I>><i> - content => template("postfix/transport_regexp"),
</I>><i> - }
</I>><i> -
</I>><i> - }
</I>><i> -
</I>><i> - class primary_smtp inherits smtp_server {
</I>><i> -
</I>><i> - package { "postfix-ldap": }
</I>><i> -
</I>><i> - # council is here until we fully decide who has aliases in com team,
</I>><i> - # see <A HREF="https://bugs.mageia.org/show_bug.cgi?id=1345">https://bugs.mageia.org/show_bug.cgi?id=1345</A>
</I>><i> - # alumini is a special group for tracking previous members of
</I>><i> - # the project, so they keep their aliases for a time
</I>><i> - $aliases_group = ['mga-founders','mga-packagers',
</I>><i> - 'mga-sysadmin','mga-council',
</I>><i> - 'mga-alumni','mga-i18n-committers',
</I>><i> - ]
</I>><i> - $ldap_password = extlookup("postfix_ldap",'x')
</I>><i> - $ldap_servers = get_ldap_servers()
</I>><i> -
</I>><i> - file {
</I>><i> - '/etc/postfix/master.cf': content => template("postfix/primary_master.cf");
</I>><i> - '/etc/postfix/ldap_aliases.conf': content => template("postfix/ldap_aliases.conf");
</I>><i> - # TODO merge the file with the previous one, for common part (ldap, etc)
</I>><i> - '/etc/postfix/group_aliases.conf': content => template("postfix/group_aliases.conf");
</I>><i> - # TODO make it conditional to the presence of sympa
</I>><i> - '/etc/postfix/sympa_aliases': content => template("postfix/sympa_aliases");
</I>><i> - '/etc/postfix/virtual_aliases': content => template("postfix/virtual_aliases");
</I>><i> - }
</I>><i> -
</I>><i> - exec { "postmap /etc/postfix/virtual_aliases":
</I>><i> - refreshonly => true,
</I>><i> - subscribe => File['/etc/postfix/virtual_aliases'],
</I>><i> - }
</I>><i> - }
</I>><i> -
</I>><i> - class secondary_smtp inherits smtp_server {
</I>><i> - }
</I>><i> }
</I>><i> Added: puppet/modules/postfix/manifests/server/primary.pp
</I>><i> ===================================================================
</I>><i> --- puppet/modules/postfix/manifests/server/primary.pp (rev 0)
</I>><i> +++ puppet/modules/postfix/manifests/server/primary.pp 2012-03-22 15:18:24 UTC (rev 2674)
</I>><i> @@ -0,0 +1,37 @@
</I>><i> +class postfix::server::primary inherits postfix::server {
</I>><i> +
</I>><i> + package { 'postfix-ldap': }
</I>><i> +
</I>><i> + # council is here until we fully decide who has aliases in com team,
</I>><i> + # see <A HREF="https://bugs.mageia.org/show_bug.cgi?id=1345">https://bugs.mageia.org/show_bug.cgi?id=1345</A>
</I>><i> + # alumini is a special group for tracking previous members of
</I>><i> + # the project, so they keep their aliases for a time
</I>><i> + $aliases_group = ['mga-founders',
</I>><i> + 'mga-packagers',
</I>><i> + 'mga-sysadmin',
</I>><i> + 'mga-council',
</I>><i> + 'mga-alumni',
</I>><i> + 'mga-i18n-committers']
</I>><i> + $ldap_password = extlookup('postfix_ldap','x')
</I>><i> + $ldap_servers = get_ldap_servers()
</I>><i> +
</I>><i> + file {
</I>><i> + '/etc/postfix/master.cf':
</I>><i> + content => template('postfix/primary_master.cf');
</I>><i> + '/etc/postfix/ldap_aliases.conf':
</I>><i> + content => template('postfix/ldap_aliases.conf');
</I>><i> + # TODO merge the file with the previous one, for common part (ldap, etc)
</I>><i> + '/etc/postfix/group_aliases.conf':
</I>><i> + content => template('postfix/group_aliases.conf');
</I>><i> + # TODO make it conditional to the presence of sympa
</I>><i> + '/etc/postfix/sympa_aliases':
</I>><i> + content => template('postfix/sympa_aliases');
</I>><i> + '/etc/postfix/virtual_aliases':
</I>><i> + content => template('postfix/virtual_aliases');
</I>><i> + }
</I>><i> +
</I>><i> + exec { 'postmap /etc/postfix/virtual_aliases':
</I>><i> + refreshonly => true,
</I>><i> + subscribe => File['/etc/postfix/virtual_aliases'],
</I>><i> + }
</I>><i> +}
</I>><i> Added: puppet/modules/postfix/manifests/server/secondary.pp
</I>><i> ===================================================================
</I>><i> --- puppet/modules/postfix/manifests/server/secondary.pp (rev 0)
</I>><i> +++ puppet/modules/postfix/manifests/server/secondary.pp 2012-03-22 15:18:24 UTC (rev 2674)
</I>><i> @@ -0,0 +1 @@
</I>><i> +class postfix::server::secondary inherits postfix::server { }
</I>><i> Added: puppet/modules/postfix/manifests/server.pp
</I>><i> ===================================================================
</I>><i> --- puppet/modules/postfix/manifests/server.pp (rev 0)
</I>><i> +++ puppet/modules/postfix/manifests/server.pp 2012-03-22 15:18:24 UTC (rev 2674)
</I>><i> @@ -0,0 +1,13 @@
</I>><i> +class postfix::server inherits postfix {
</I>><i> + include postgrey
</I>><i> + include amavis
</I>><i> + include spamassassin
</I>><i> +
</I>><i> + File['/etc/postfix/main.cf'] {
</I>><i> + content => template('postfix/main.cf'),
</I>><i> + }
</I>><i> +
</I>><i> + file { '/etc/postfix/transport_regexp':
</I>><i> + content => template('postfix/transport_regexp'),
</I>><i> + }
</I>><i> +}
</I>><i> Added: puppet/modules/postfix/manifests/simple_relay.pp
</I>><i> ===================================================================
</I>><i> --- puppet/modules/postfix/manifests/simple_relay.pp (rev 0)
</I>><i> +++ puppet/modules/postfix/manifests/simple_relay.pp 2012-03-22 15:18:24 UTC (rev 2674)
</I>><i> @@ -0,0 +1,5 @@
</I>><i> +class postfix::simple_relay inherits postfix {
</I>><i> + File['/etc/postfix/main.cf'] {
</I>><i> + content => template('postfix/simple_relay_main.cf'),
</I>><i> + }
</I>><i> +}
</I>><i>
</I>><i>
</I>><i>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20120322/9945203b/attachment-0001.html>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="004302.html">[Mageia-sysadm] About the old HDDs we changed in February
</A></li>
<LI>Next message: <A HREF="004306.html">[Mageia-sysadm] [sysadmin-commits] [2674] clean postfix module, rework the layout and split it in several file
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4305">[ date ]</a>
<a href="thread.html#4305">[ thread ]</a>
<a href="subject.html#4305">[ subject ]</a>
<a href="author.html#4305">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>
|