tldr: SWAKS

> I'm new to exim and I'm trying to configure it correctly in my VPS so I can
> use it for differents domains.
>
> I tried to send email (just to check if exim smtp works) using this command:
>
> *echo "Subject: teest" | /usr/sbin/exim4 -v [email protected]
><[email protected]>*
>
> And checking the result I saw this error:
>
> *LOG: MAIN PANIC  Tainted filename
> '/opt/tinycp/domains/srv675314/dkim.private.key'LOG: MAIN PANIC  unable to
> open file for reading: /opt/tinycp/domains/srv675314/dkim.private.key*

It's called exim4 and has written to mainlog so it's running as user
"Debian-Exim" and group "Debian-Exim"

You will need to make the key file(s) confugured in exim to be
readable by that user and/or group.  if you're using  ${lookup_dsearch
then the directories containing the files must also be readable.

In one root shell do 

     su Debian-exim -s "$SHELL"
     
and then try to cat the file.

In another root shell mess with file permissions until you can.

> /opt/tinycp/domains/domain1
> /opt/tinycp/domains/domain2

> How can I tell exim4 to use a particular domain in command line?

DKIM mostly uses the "From: " email header, make sure it's correctly
formed... but that all depends on how you have DKIM configured.
 
> And how can I be sure it works well for each domain as I'm using tinycp app ?

Do some sort of for loop in shell?
maybe ask tinycp how this is meant to work.

-- 
 Jasen.
 🇺🇦 Слава Україні

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to