ix-ai / smtp

This is a SMTP docker container for sending emails. You can also relay emails to gmail and amazon SES.
MIT License
92 stars 14 forks source link

Cannot open main log file "/var/log/exim4/mainlog": Permission denied #7

Closed rafaelmr2 closed 1 year ago

rafaelmr2 commented 2 years ago

Hi,

my container die in a few seconds [Exited (1)] with that error. Can you help me? Thanks.

docker-compose.yml:

[...]
smtpd:
  container_name: mail
  image: ixdotai/smtp:latest

docker logs:

+ sed -ri '
s/^#?(dc_local_interfaces)=.*/\1='\''[0.0.0.0]:25 ; [::0]:25'\''/;
s/^#?(dc_other_hostnames)=.*/\1='\'''\''/;
s/^#?(dc_relay_nets)=.*/\1='\''172.22.0.6\/16'\''/;
s/^#?(dc_eximconfig_configtype)=.*/\1='\''smarthost'\''/;
s/^#?(dc_smarthost)=.*/\1='\''sistemas.ufrj.br::587'\''/;
s/^#?(dc_relay_domains)=.*/\1='\'''\''/;
' /etc/exim4/update-exim4.conf.conf
+ update-exim4.conf -v
using non-split configuration scheme from /etc/exim4/exim4.conf.template
LOG: MAIN
Warning: No server certificate defined; will use a selfsigned one.
Suggested action: either install a certificate or change tls_advertise_hosts option
LOG: PANIC DIE
Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=0 egid=101
2021-10-20 14:51:15 Warning: No server certificate defined; will use a selfsigned one.
Suggested action: either install a certificate or change tls_advertise_hosts option
2021-10-20 14:51:15 Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=0 egid=101
exim: could not open panic log - aborting: see message(s) above
tlex commented 2 years ago

On what platform are you trying to start it? What kernel is running on the host?

Can you please also start the ixdotai/smtp:dev-master with the environment variable VERBOSE=true and put here the log (but please, remove any credentials first)?

Thanks

tlex commented 1 year ago

This issue has been open long enough. Closing it :slightly_smiling_face: