Postfix default configuration on ISPConfig

Discussion in 'General' started by pyte, Apr 18, 2024.

  1. pyte

    pyte Well-Known Member HowtoForge Supporter

    Hi,
    in a test i've checked if a setup with a mailbox, some mailaliases and PopCon works to deliver mails to exchange mailboxes but relalized that allthough the setup works, the exchange server sends a DSN as it tries to deliver the mail to the envelop address too which is not present on the exchange server.

    Upon checking against a working setup i came to the conclusion that this is due to the missing "X-Original-To" Header in the ISPConfig setup. I've checked config and saw that on a default ISPConfig installation with mail the postfix option "enable_original_recipient" is set to no. The official documentation however states that the option is set to "yes" at default. (See: https://www.postfix.org/postconf.5.html#enable_original_recipient)

    What is the reason that the option is set to "no" on ISPConfig system? Is it safe to change it to yes or does this break functionality?
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    Is there a way to add a sieve rule to all new mailboxes in ISPConfig? Any template i may can edit?
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    In server/conf there's sieve_filter.master, but you can't set a custom config for that. It states this in the first lines:
    Code:
    # This sieve script is generated by ISPConfig, any changes made will be overwritten.
    # You can create and activate a per-user sieve script (manually or via managesieve),
    # which will execute after this.
    
     
  5. pyte

    pyte Well-Known Member HowtoForge Supporter

    Well in the end this did not need any configuration changes on the mailserver side to fix. It was a misconception about PopCon and how the software determines what the correct recipients are. Within the softwares configuration it is possible to specify which header fields get checked to reliably determine the original recipient for this mail.

    In my case the mail got delivered to the correct recipient and the original mailbox(mailbox with aliases) because PopCon grabed the address from the "received for" header of the mail.
     
    till likes this.

Share This Page