Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] How to forward every mail to secondary SMTP server
- From: David Verdin <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] How to forward every mail to secondary SMTP server
- Date: Tue, 7 Jun 2016 11:16:53 +0200
What you could do, if
you're in 6.2, is using a post_archive hook. You coulmd simply
forward the message to your local mailbox using the hook. I
suggest using post_archive because then you're sure the message
is supposed to be archived. The only current documentation
is the perldoc from Sympa::Message::Plugin. NAME Sympa::Message::Plugin - process hooks SYNOPSIS Sympa::Message::Plugin::execute('post_archive', $message); DESCRIPTION Sympa::Message::Plugin provides hook mechanism to intervene in processing by Sympa. Each hook may modify objects (messages and so on) or may break ordinary processing. Notice: Hook mechanism is expreimental. Module names and interfaces may be changed in the future. Methods execute ( HOOK_NAME, MESSAGE, [ KEY => VAL, ... ] ) Process message hook. Hooks Currently, following hooks are supported: pre_distribute Message hook. Message had been approved distribution (by scenario or by moderator), however, it has not been decorated (adding custom subject etc.) nor archived yet. post_archive Message hook. Message had been archived, however, it has not been distributed to users including digest spool; message has not been signed nor encrypted (if nessessary). How to add a hook to your Sympa First, write your hook module: package My::Hook; use constant gettext_id => 'My message hook'; sub post_archive { my $module = shift; # module name: "My::Hook" my $name = shift; # handler name: "post_archive" my $message = shift; # Message object my %options = @_; # Processing, possiblly changing $message... # Return suitable result. # If unrecoverable error occurred, you may return undef or simply die. return 1; } 1; Then activate hook handler in your list config: message_hook post_archive My::Hook SEE ALSO Sympa::Message::Plugin::FixEncoding - An example module for message hook. HISTORY Sympa::Message::Plugin appeared on Sympa 6.2. It was initially written by IKEDA Soji <address@concealed>. Regards, David Le 07/06/2016 à 11:00, David (via
sympa-users Mailing List) a écrit :
Hi, In the sympa aliases, you associate any list address with a pipe to the sympa queue programs. I think it should be possible to add a local account to this pipe, simply separated from the pipe by a comma. Something like this is certainly possible BUT you will ignore any sympa related processing, such as moderation. You then risk to archive messages that will actually be rejected. Le 6 juin 2016 17:12:00 CEST, dev <address@concealed> a écrit : Hello, I have Postfix + Dovecot installed to archive all of the Sympa messages under /home/sympa/wwsarchive/.../arctxt/* into one shared IMAP mailbox so everyone with Outlook mail client can connect to search the archive. I have a python script to parse all arctxt/* messages from Sympa and store them on the IMAP server (maildir format) based on the "Delivered-To:" mail header. This works fine to collect all existing messages (which takes nearly an hour to run) but I would like to know how best to store any new messages to the IMAP server. Where would I configure a destination email address which Sympa would forward ever email it receives/sends? I suspect this would be something under /etc/mail/sympa/aliases but I am not certain. Thank you --
A bug in Sympa? Quick! To the bug tracker!
|
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
-
[sympa-users] How to forward every mail to secondary SMTP server,
dev, 06/06/2016
-
Re: [sympa-users] How to forward every mail to secondary SMTP server,
David, 06/07/2016
-
Re: [sympa-users] How to forward every mail to secondary SMTP server,
David Verdin, 06/07/2016
- Re: [sympa-users] How to forward every mail to secondary SMTP server, dev, 06/07/2016
- Re: [sympa-users] How to forward every mail to secondary SMTP server, dev, 06/07/2016
-
Re: [sympa-users] How to forward every mail to secondary SMTP server,
David Verdin, 06/07/2016
-
Re: [sympa-users] How to forward every mail to secondary SMTP server,
David, 06/07/2016
Archive powered by MHonArc 2.6.19+.