[Postfixbuch-users] Que

Christoph Lechner cl0036 at l-mx.de
Di Jul 28 10:39:41 CEST 2009


Sandy Drobic wrote:
> Christoph Lechner wrote:
> 
> Hallo Christoph,
Hallo,

> 
> die Teilnehmer dieser Mailingliste verstehen und bevorzugen Deutsch. (^-^)
weis auch nicht, warum ich die Mail auf Englisch geschrieben habe. War 
vielleicht schon zu spät oder zuwenig Coffein oder beides :-)

> 
>> Hi all,
>>
>> (running Postfix 2.3.8 from Debian old-stable)
>>
>> for a Linux HA high availability setup, I configured a Postfix
>> null-client (in a configuration path differing from the default). The
>> null-client is intended on to run on the backup node only, while the
>> master node runs the Postfix server doing all the work.
>>
>> My main idea behind running a null-client on the backup node was to
>> enable sending mail from that machine via the 'sendmail' command. An
>> example of mails I want to be sent from the backup node is when the
>> status of the RAID system changes.
>>
>> The null-client setup is running just fine; when I telnet on that
>> machine to localhost port 25, I can deliver mail anywhere I want.
>>
>> But when I invoke 'sendmail' on the command line, nothing happens.
>> Running grep showed that the mail is dropped in the 'maildrop' part of
>> the wrong maildrop directory.
>>
>> I thought it would be a good idea to have an extra queue directory (set
>> via queue_directory in the config file) to avoid message loss. From the
>> documentation of postdrop it appears that one can only drop in maildrop
>> directories other than the default one if
>> * one adds the configuration path for that setup to
>> alternate_config_directories directive of the default main.cf
>> * and specifies a parameter on the sendmail command line.
>> The additional parameter is a problem, because I consider scripts
>> monitoring the RAID system to be mission-critical. So I don't want the
>> script to decide if the additional parameter has to be added or not.
> 
> Pro Instanz von Postfix gibt es nur eine Queue. alternate_config_directories
> ist gedacht für eine Multi-Instanzen-Konfiguration.
Heisst das, dass man in meinem Fall garnicht zwei Queues braucht?
Bei mir läuft ja immer nur höchstens ein Postfix gleichzeitig.

> 
> Bei den wenigen Mails, die du für die Überwachung verschickst, brauchst du
> keine Spiele mit Postfix zu betreiben.
Wollte halt die Scripts nicht modifizieren müssen. Das würde ja eben 
wieder eine Quelle fuer einen Potentiellen Verlust von Nachrichten 
bringen, wenn ich da irgendwo einen Fehler mache. Beim Failover sollte 
nur der Nullclient gestoppt werden und der normale Postfix gestartet 
werden, dies wird von Linux HA erledigt.
An sich war mein Hintergedanke beim Aufsetzen des Null-Clients, dass ich 
einfach wie gewohnt "/usr/sbin/sendmail -t" ausführe und die Mails 
werden versendet. Das normale Postfix-Setup kann ich nicht laufen 
lassen, weil sonst auf dem Backup-Server (der ja keine Mails empfangen 
kann) eine lokale Zustellung versucht würde. Diese kann aber nicht 
erfolgen, weil die Mailboxes nicht gemounted sind.

Hab zwar nix gefunden, aber kann sendmail sich auch zu localhost:25 
verbinden statt die Mail über postdrop in den Queue-Baum zu werfen?

> 
>> Is it possible to make sendmail/postdrop place the mail in the right
>> maildrop directory (thus making the null-client pick-up the mail)
>> WITHOUT changing the scripts invoking sendmail?
>> Or is it just wrong to have two different queue directories for two
>> independed postfix setups (at the same time only one of them is active)?
> 
> Du schiesst dir damit schnell in den Fuß, wenn du eine zu komplizierte
> Konfiguration aufbaust. Ich weiss jetzt nicht, was genau du mit
> Hochverfügbarkeit meinst, aber für normale Mail-/Relay-Zwecke ist eine
> Einrichtung über mehrere MX-Einträge die normale Art, Redundanz für Mailserver
>  zu schaffen.
Ist mir bekannt, aber ich hatte vor ein Active/Standby Setup aufzubauen. 
Beide Maschinen *können* den Mail-Server laufen lassen, aber tatsächlich 
läuft der Postfix, der Mails für die User empfängt, immer nur auf einer 
Maschine. Die Mailboxes befinden sich auf einem mit DRBD gespiegelten 
Volume. Dieser Null-Client läuft ja wirklich nur für den Versand von 
RAID-Meldungen, Cron Jobs etc.

Grüße
- Christoph



Mehr Informationen über die Mailingliste Postfixbuch-users