Chevereto save the sent SMTP email

I build my own email server with [Mail-in-a-Box] .Then I found all my user signup email can sent successfully,but I can’t find the sent email in the Sent mail folder .

Well.I solved the problem myself.

Just add one line in /app/lib/functions.php ,under line 149

replace the “BCC@your.email”,“your BCC name” with your own.That’s all.

    $mail->Password = getSettings()['email_smtp_server_password'];
    $mail->AddBCC("BCC@your.email","your BCC name");

And then set a Filter in MIAB like this.

require ["fileinto"];
# rule:[SaveSentMail]
if anyof (address :contains "from" "SENT1@your.email", address :contains "from" "SENT2@your.email")
{
    fileinto "Sent";
}

https://madlax.pw/2020/05/379.html
https://github.com/mail-in-a-box/mailinabox/issues/1370

@tomcb

Would you elaborate on this part please? I assume that you are accessing sieve directly but most people (myself included admittedly) would only know to add filters via Roundcube. It would be very helpful if you could add a how-to for this part of your post. Thanks!! :slight_smile:

You can set it like this.

In fact, you only need to set one rule, that is, the email you filled in chevereto.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.