I want to be able to send emails in python so that I can parse bounces. VERP seems to be the solution to this. However I don't receive the bounce notification when I set my from address (not the MIMEMultipart object's "From" value) to include the VERP delimiter.
Can I just form my own VERP sender (i.e. to send to user@domain.com, can I just set my From: address for that recipient "mysender+user-domain-com.mydomain.com") and expect it to work, or do I need to configure postfix to correctly parse the failed DSN somehow? My problem is receipt of the failure notice, not getting the message to deliver to valid recipients when I do this.
Maybe an example will help.
When I send email from myuser@domain.com, I receive bounce notices just fine.
When I send email from myuser+verp_identifier@domain.com, I don't receive any bounce notices. (Although correctly addressed emails, e.g., to: valid_user@gmail.com go through just fine.) Perl's Mail module has a Verp sub-module, does python have anything like this?