Can I take mail from Maildir mailbox and deliver it as new?

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed Nov 5 06:48:34 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 4 Nov 2014, James Pryor wrote:

> Is there a way to take mail sitting on disk in a mailbox and deliver it as if 
> it was new mail to some other machine?

If you don't care about the Recieved and probable Delivered-To lines the 
delivery on system C has added, you can "resent" it via:

for f in new/* cur/*; do
  sendmail "final_recipient_on_system_B" < "$f"
done

However, first test if a message sent from command line takes the route 
you want it to take :-)

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBVFnIQ3z1H7kL/d9rAQJX/AgAwyooFEWpVbc5g2mjcgSGnTgRQrnIlnag
v0Hxr0ZHunYCQc9mXhGEOPsr3zCPEUxANDWf03H1jvUFxj37iCAp0X6MpMk13+x0
2U8pFx4bqEy82+71gh8r/UB/9KPUsgG32WLcE8xKqF8avtr4yJBazOScmtnbF/f/
cPzIFxf90eP/8VAlh3epRR1bwLVxnm1f+V0PqYry9zJ+ruVUL0DoJJiYOYxUg4Mz
684NDhz2DA8eDcf+Edrfy+UiRROR85idBWnj173lO0KL/K6bsyzfHtkqfaXgObO7
BjZdMelKTrVTTXmjSZaO0fOtbgQ6irZU5B1IxCbMAN12/l4RMFlxLw==
=O7Rc
-----END PGP SIGNATURE-----


More information about the dovecot mailing list