Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - luckyfreddy

Pages: [1]
1
German / [Zentyal 6.2] ALLE Mails grundsätzlich über Smarthost senden?
« on: October 02, 2020, 02:29:46 pm »
Hallo zusammen,

ich würde Zentyal gerne so konfigurieren, dass ALLE Mails grundsätzlich beim Versand immer über den Smarthost gesendet werden und zwar unabhängig davon, ob die Mailadresse intern bei einem Benutzer konfiguriert wurde oder nicht. Hintergrund ist der (zumindest zeitweise für eine Migration notwendige) Paralellbetrieb mit einem alten Mailserver.

Bislang habe ich leider keine fehlerfrei funktionierende Lösung gefunden, die nicht anderweitig böse Nebenwirkungen hatte. Beim Versuch eines Mailversandes scheitert z.B. auch der Versand an eine Adresse jener Domain, für die der Zentyalserver sich verantwortlich fühlt und keinen lokalen Benutzer findet.

Beispiel:

[Auf Zentyal vorhanden]
Benutzer 1: toller.benutzer@benutzerdomain.de, weitere Adresse: toller.benutzer@mailserver-externe-adresse.de

[Auf externem Mailserver noch vorhanden]
- gigantischer.benutzer@benutzerdomain.de
- toller.benutzer@benutzerdomain.de (mit Kopie-Weiterleitungsregel an das Zentyalsystem auf: toller.benutzer@mailserver-externe-adresse.de)

Bedeutet:
Beim Versand einer Mail von einem anderen Anbieter (sagen wir GMX) an toller.benutzer@benutzerdomain.de (die aktuell noch nur auf dem externen Mailserver zeigt), wird diese dort an die extern erreichbare Mailadresse toller.benutzer@mailserver-externe-adresse.de vom Zentyalserver gesendet und dort angenommen.

Ferner kann vom externen noch vorhandenen Mailserver eine E-Mail an gigantischer.benutzer@benutzerdomain.de UND an toller.benutzer@benutzerdomain.de geschickt werden.

Was nicht funktioniert:
- Vom Zentyal aus eine Mail an gigantischer.benutzer@benutzerdomain.de zu schicken, da der Zentyal diese nicht an den Smarthost übergibt und raussendet, sondern sich beschwert, dass die Domain keinen eigenen Benutzer zugewiesen wurde.
- Vom Zentyal aus eine Mail an toller.benutzer@benutzerdomain.de zu schicken, wenn diese auch beim externen Mailanbieter in Kopie empfangen werden soll, da Zentyal die Mail nicht an den Smarthost übergibt und raussendet, sondern direkt intern in das Postfach vom Benutzer legt.

Ich hoffe ich konnte meine Frage/meinen Wunsch verständlich rüberbringen. Hatte das schon mal im englischen Forum probiert - mit meinen eingeschränkten Englischkenntnissen dies aber u.U. nicht verständlich erklären können.

Hat jemand eine Idee?

Besten Dank vorab.

2
German / Re: Ich kann Zentyal unter Windows Server 2003 nicht beitreten.
« on: October 02, 2020, 10:16:58 am »
Wirklich helfen kann ich da vermutlich auch nicht direkt. Nur zwei Gedanken dazu:

Evtl. ist in den Logdateien unter /var/log/samba/ dort noch mehr zu finden, womit man einen Aufschluss hat, "wo der Schuh drückt".
Zugreifbar sind die Dateien entweder über SSH (z.B. von Windows aus über PuttY), über SCP (z.B. WinSCP) oder (bei installierter grafischer Oberfläche (GUI) direkt auf dem Zentyalsystem.

Zweiter Gedanke: Windows XP und Windows Server 2003 unterstützen (soweit ich mich erinnere) nur den alten SMB1-Standard. In Zentyal 6.x ist jedoch schon Samba 4 vorhanden. Evtl. muss hier manuell eine Konfigurationsanpassung (die unter Umständen aber auch Sicherheitsnachteile mit sich bringt) erfolgen, damit Samba mit dem alten Standard spricht.

Vielleicht helfen die Gedanken ja.

3
That is great.
My problem first was, that i don't know where to configure my wish from the topic. That's why i could not found the right place in the documentation.

As I found my "workaround" I forgot to check the documentation. So thank you for the link; I think it helps. This seemed to me a solution for me.

Thank you and greetings from germany.

4
I found out the reason why it would be uncommented after reboot. The file /etc/postfix/main.cf would generated by an zentyal-init-script while booting the system.

I could find the draft-file, which shoud be /usr/share/zentyal/stubs/mail/main.cf.mas.

I think using an script (e.g. via cronjob?)... something like that:
Code: [Select]
sed -i s/^virtual_mailbox_domains/#virtual_mailbox_domains/g /usr/share/zentyal/stubs/mail/main.cf.mas
sed -i s/^virtual_alias_maps/#virtual_alias_maps/g /usr/share/zentyal/stubs/mail/main.cf.mas
sed -i s/^virtual_mailbox_maps/#virtual_mailbox_maps/g /usr/share/zentyal/stubs/mail/main.cf.mas
...should make it safe for upgrades. What do you think?

5
Email and Groupware / Workaround for this problem
« on: May 29, 2020, 04:38:14 pm »
I've found an workaround for that problem:

In the /etc/postfix/main.cf - File I comment out the virtual_mailbox_domains, virtual_alias_maps and virtual_mailbox_maps and reload the postfix-service with "service postfix reload".

That's it. From now on all communication will be send through the smarthost/relayhost and it's done. Unfortunately this changes are not safe from any changes at the GUI and propably not at updates. So I think, that it is rather an workaround than an solution, but it worked for me.

Credits: Found the soultion here: https://support.plesk.com/hc/en-us/articles/213931945-Mail-to-external-mail-service-is-delivered-locally


edit:
Unfortunatelly after restart or any changes at the "mail"-section the outcomments would be removed and the unwated behavior is back.

Perhaps anybody has an idea to fix that without cronjobs to write the changes all time in the file and reload the postfix-service?

6
Hello together,

to connect my (and families) Smartphones and Computers i would install an Zentyal 6.1 Development for private. Is there any possibility to set an hostname like gmail.com to your mailaddress, without to block any other gmail.com-addresses which where not configured at zentyal? At Microsoft Exchange there is an option to set an domain "non-authorized", so that Exchange first try send an mail at the internal user-account (if available) and then (when no matching account with that mail-address would be found) sent it out to the smarthost (smtp.gmail.com).

Would there be an possibility to set something similar?

Sorry for my worse english; i'm not a native speaker.

Greetings,
Fred

Pages: [1]