![]() Plesk-domain1.tld-1.2.3.4- unix - n - smtp -o smtp_bind_address=1.2.3.4 -o smtp_bind_address6= -o smtp_address_preference=ipv4 -o inet_protocols=ipv4 -o smtp_helo_name=domain1.tld Submission inet n - y - smtpd -o smtpd_enforce_tls=yes -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination Plesk_saslauthd unix y y y - 1 plesk_saslauthd status=5 listen=6 dbpath=/plesk/passwd.db Smtps inet n - y - smtpd -o smtpd_tls_wrappermode=yes Smtp_tls_session_cache_database = btree:$ġ27.0.0.1:12346 inet n n n - spawn user=popuser:popuser argv=/usr/lib/plesk-9.0/postfix-srs Sender_dependent_default_transport_maps = hash:/var/spool/postfix/plesk/sdd_transport_maps Recipient_canonical_classes = envelope_recipient,header_recipient Plesk_virtual_destination_recipient_limit = 1 Mydestination = localhost.localdomain, localhost Postconf -n: alias_database = hash:/etc/aliasesĪlias_maps = hash:/etc/aliases, hash:/var/spool/postfix/plesk/aliases There must be a way to configure Postfix to work like I want without changing the Plesk-part to work (management of the postboxes itself). The question is not really related to Plesk, I want to change Postfix on the config-file-level to work as described above, but delivery to local postboxes should still be possible. Here is the content, I only changed the domain-names to dummy domains. ![]() Maybe it's again a situation of "wrong search terms" to find the correct answer - or such a specific use-case that nobody had before!? :) Hope my situation was well described and someone can push me in the right direction. So in short: If a mail comes in from "mynetwork" it should be delivered to the local mailbox, if it was sent by an authenticated user it should be routed accordingly (local or external dependent on the destination ) ), if neither of this applies all should be sent to the Mailcow (if possible already "filtert" by the locally available mailboxes). I found several examples on "how to configure Postfix as relay" and also many how tos to configure Postfix as local MTA, but I need something from both parts. I would guess there should be some smart option to relay all mails not sent from "mynetwork" or an authenticated user from postfix to Mailcow so it should come back from Mailcow (which is in "mynetworks"), but I'm not able to figure out how to configure Postfix to work like this. Mailcow is working and relaying the e-mails to the Postfix as expected, but: DNS-Entries for MX had a TTL of 300 seconds and should have been outdated everywhere (I know that some DNS-hosts keep information longer then TTL), but it's now days and I still receive mails on the former primary MX, Postfix without going through mailcow. Now - to reduce spam - I want to use mailcow on a second server as primary MX relaying mails to the Postfix. I had one server with Plesk using Postfix as primary MX for several domains. I have some trouble understanding Postfix-configuration and have the current situation:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |