I have a somewhat special construction.
Kopano server with Postfix [ with Ciphermail encryption ] with Fetchmail.
Kopano Server sends mails via Postfix to the outside. This works.
I can successfully sign, encrypt or send mails as encrypted PDF to the outside world. But Ciphermail should not be the focus here, that is anyway only a pimped postfix.
Fetchmail can also fetch my emails and if I enter as mta the Kopano-dagent in my fetchmailrc the mails will be delivered correctly to my Kopano users.
But I don’t want to give my mails directly to the dagent, because otherwise they won’t be decrypted correctly, that must be the Postfix ( Ciphermail ) again.
So I have to pick up my mails with Fetchmail and send Postfix to Kopano for delivery.
And that’s exactly my problem and I’ve tried so many things and so many snapshots in virtual machines that I’ve completely lost track of it.
I think one problem is that there are no local users with a mailbox, but only those that are stored in the mysql kopano database.
There are exactly two things here that I don’t know exactly ( probably much more, but two I’m aware of :=)
What is in my case the exact syntax for passing to the local postfix?
How is the postfix able to recognize if the mail should be sent to Kopano or if it should be sent to the remote mailbox?
So Postfix must be responsible for the internal as well as for the external mailboxes, which in my case are the same as well.
I don’t want to use a ’ Kopano-Fetchmail-Plugin’ solution and even with Ciphermail I can’t use the integrated Fetchmail solution because we don’t use the appliance.
Somebody must have had a similar problem, right?
Kopano sends via Postfix to external, fetchmail retrieves mails and delivers them to Postfix, it delivers again to Kopano.
## Allgemeine Einstellungen set daemon 60 # E-Mails alle 1 Minuten abholen, in Sekunden set syslog # In Syslog loggen set postmaster "root" # Postmaster festlegen set no bouncemail # Leite Fehlermails zum Postmaster um ## Konten # Works while Mails are send directly to kopano-dagent #poll sslin.df.eu with proto IMAP user "email@example.com" there with password "password1" mda "/usr/sbin/kopano-dagent username1" options keep ssl #poll imap.gmail.com with proto IMAP user "name2" there with password "password2" mda "/usr/sbin/kopano-dagent username2" options keep ssl # Tests poll imap.gmail.com with proto IMAP user "firstname.lastname@example.org" there with password "password1" options keep ssl poll sslin.df.eu with proto IMAP user "email@example.com" there with password "password2" options keep ssl
Assignment of users
# forward local system accounts alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases virtual_mailbox_maps = mysql:/etc/postfix/mysql-users.cf virtual_alias_maps = hash:/etc/postfix/virtual virtual_mailbox_domains = virtual_transport = lmtp:[localhost]:2003 #virtual_alias_maps = hash:/etc/postfix/virtual #virtual_mailbox_maps = hash:/etc/postfix/virtual #virtual_mailbox_maps = mysql:/etc/postfix/kopano-users.cf
#Emailaddress or alias primary mailaddress of user name1 ( kopano username ) firstname.lastname@example.org name2 ( kopano username ) email@example.com
user = kopano password = kopano hosts = 127.0.0.1 dbname = kopano #query = SELECT value FROM objectproperty where propname = ‚emailaddress‘ and value = ‚%s‘; query = SELECT value FROM objectproperty where propname = 'emailaddress' and value = '%s';`````` Insert Code Here
I can provide you with more information.
Does anyone have an idea how I could proceed or check?