Works like a charm. Thank you a lot.
Tobias Hanno Hecker schrieb: > On Tue, 28 Jul 2009 15:33:45 +0200 > Tobias Knecht <k...@knutix.de> wrote: > >> Hi there, >> >> we need some help with the file saving to MailDir process. >> >> For us it would be perfect if the IP address of the delivering system >> would be part of the filename qpsmtpd uses to save the email into MailDir. >> >> At the moment it's like that. >> 1245874889.P1478M493336Q0.sub.domain.tld >> >> That would be absolutly perfect. >> 169.0.0.1-1245874889.P1478M493336Q0.sub.domain.tld >> >> Does anybody have an idea how we could get that done? > > something like this in the maildir plugin should help (in sub > write_file()): > my $unique = "P$$" . "M$microseconds" . "Q" . $maildir_counter++; > # my $file = join ".", $time, $unique, $self->{_hostname}; > my $file = $self->qp->connection->remote_ip . "-" > . join(".", $time, $unique, $self->{_hostname}); > > Hanno >
signature.asc
Description: OpenPGP digital signature