Box sent

Discussion in 'General' started by rmadamante, Jul 19, 2021.

  1. rmadamante

    rmadamante New Member

    I have some php scripts and other software for sending emails, they all send normally, the problem is that when these scripts are sent none of the emails are registered in the accounts sent box. Has anyone been through this and, if possible, any solution?
    I am using the latest version 3.2.5.

    Sorry for my poor English...
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Putting mail in a sent folder is generally a function of the MUA, so you could eg. modify your php scripts to do that, or try the sender_bcc_maps in postfix (I've never used that to try to create a server side sent folder, but you might be able to do so).
     
  3. rmadamante

    rmadamante New Member

    Any other way to capture these emails, not using sender_bcc_maps? I have clients where I can't change the sending scripts, for example, today they do it from imap port 587 in hotmail and in ispconfig I'm not finding a way to do this...
    Maybe in the database or something like that?
    Grateful!
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Yes, though if you're not able to use that, other options will likely be even more out of reach. Options include writing a custom sendmail-compatible script or binary and set that as sendmail_path in php.ini; or you could create a custom mail delivery program/script and set that up as a mail transport and have it intercept the mail and store a copy.

    Imap would be an interface you could use to store the message in the Sent folder, but that would require being able to modify that php scripts that send to do so.

    Mail is not stored in a database, so not really. The only thing you could do in the database is configure sender_bcc_maps (which you said you don't want to use for some reason), or arrange for mail delivery to use a custom transport which you have previously setup (ie. as mentioned in first paragraph above), either of which is definitely quicker to do via the ui (and more appropriate via the remote api than direct database manipulation.
     

Share This Page