Disabling local email delivery in a persistent way?

Discussion in 'Installation/Configuration' started by kwisarts, Dec 2, 2024 at 6:17 PM.

  1. kwisarts

    kwisarts New Member

    I know this has been asked in a similar way and I'll link to the other thread(s) if I can find them.

    Why would I like to disable local delivery?
    The server is a webserver only, but we need it to send DKIM signed emails directly without passing through other smtpds.
    For the case where a website (e.g. [email protected]) wants to send mail to another user at the same domain (e.g. [email protected]), I need to disable local delivery or postfix will try and fail to deliver those mails locally using maildrop.

    I think this is a legitimate use-case, given that not every client who has their website hosted on this server wants to or can even provide an smtpd serving as a relay host or as an mta. So an all or nothing set-up as in "just disable email on the server" is not the correct answer to this problem.

    While I do agree that a better solution would be to use a dedicated email server as a globally defined relay host, not everyone has the luxury of being able to or afford to doing that.

    The way I have handled disabling local delivery is by commenting out these two settings in main.cf:

    Code:
    # DR - Disable local delivery for sender domains
    #virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    #virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    
    This works perfectly fine, except for when I update ISPConfig and ask it to reconfigure services…

    Is there any way I could handle this today, or do we want to add a checkbox to globally disable local delivery and keep mail services enabled for remote delivery, or at least do this per client/domain ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    So your whole problem is that you missed making your custom config update-safe. There are plenty of posts here in the forum which explain what you must do to make your changes update-safe by putting a modified install template in conf-custom/install/ folder.
     
    ahrasis likes this.
  3. TenTwentyFour

    TenTwentyFour New Member

    Thanks till.

    I'm sure there are plenty of posts that explain how to solve almost any imaginable topic in this forum. It's just super hard to find the correct ones, at least for me, if one doesn't know what exact terms to search for.

    I had found plenty of people asking about the same thing and being told to disable mail entirely, not a single thread where the answer was "change it and make it 'update-safe'!".

    We've had this conversation before when I incorrectly complained about the lack of extensibility. I also ran into this issue when I found a, but not the correct install tutorial.

    I'm just having a hard time using a forum as a source of documentation.

    Edit: sorry for switching accounts, I wasn't even aware I had another one.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Just a few examples from forum search:

    https://forum.howtoforge.com/thread...ing-cant-display-mailboxes.91831/#post-453759
    https://forum.howtoforge.com/threads/how-to-make-named-conf-options-persistent.93321/#post-461705
    https://forum.howtoforge.com/thread...ng-location-of-main-config.92670/#post-458727
    https://forum.howtoforge.com/threads/custom-ispconfig-vhost-does-not-work.92730/#post-458755
    https://forum.howtoforge.com/thread...ing-cant-display-mailboxes.91831/#post-453759

    You still have not found out how to install ISPConfig? You could just have visited the ISPConfig website, click on installation and you find plenty of install guides, like this one:

    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/

    I'm sorry to hear that you are not familiar with information retrieval on the Internet. Feel free to contact business support https://www.ispconfig.org/get-support/?type=ispconfig I'm sure Thom can explain things that you don't know how to find.
     
    Last edited: Dec 2, 2024 at 8:23 PM
    ahrasis likes this.
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    ahrasis likes this.
  6. TenTwentyFour

    TenTwentyFour New Member

    Till, you may be right about everything, and yet, I feel like your sarcasm and snide are entirely misdirected and unasked for.

    Especially since I conceded that I've been in error before and that fora are not the ideal tool for me personally without generalizing that claim to everybody.

    I could use your own examples as counter-arguments, show how Google searches turn up a lot of posts that do not hold any useful answers, how the same questions are asked over and over again, despite the correct answer being in a post just a simple search away,... but I don't want that to be met with another snide reply, so I won't.

    Just one from the last post you linked to:

    I think you're forgetting that you have gotten the lingua (search terms) down because you're working with this all day, every day while others are used to other tools and other means of information management and retrieval.

    I don't think mockery is the way you're going to build the community and get people to buy business support.

    I'm saddened, because I thought I wanted to contribute something back to ISPConfig, other than the manuals I've bought repeatedly over the years, but now I'm not so sure anymore, seeing how everything is perfect already anyway.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    In fact, I already wondered where you referred to as your account has no posts about extending ISPConfig.

    I'm not selling any business support for ISPConfig, so you can't buy that from me anyway. I just pointed you to an option I didn't provide myself to help you with your information retrieval issue. All I ask the community for is to try at least to find an answer before asking the same thing repeatedly. I'm not your free search bot. I share my knowledge here but I will not repeat the same thing over and over again when it has been answered dozens of times already. And yes, after giving the same answer dozens or, in some cases, hundreds of times, I'll start referring users to use the search function after many years of repeating the same answer. But even then, I mostly provide users with the short answer, like in your case "you must do to make your changes update-safe by putting a modified install template in conf-custom/install/ folder." You could have followed immediately if you know ISPConfig a bit, which means you know that the installation uses template files, or use information like "make your changes update-safe" or "conf-custom/install/ folder" to search for a more detailed explanation.

    We always welcome users to help new users here. That way, I can focus on development work. Or you can also write a post with step-by-step instructions for the tips and tricks forum on this topic if you like to contribute.
     
    ahrasis likes this.
  8. ahrasis

    ahrasis Well-Known Member

    Meh... Excuses, excuses...
     

Share This Page