pcn / mailbag

Docker build and run of courier-mta and an IMAPd
0 stars 0 forks source link

Local delivery fails #1

Closed pcn closed 2 years ago

pcn commented 2 years ago

When sending an email to a configured smtp container, the mail is enqueued in the shared /var/spool/courier mounted queue.

When running courierd in a separate spool the mail is rejected.

When starting courierd in the mta container manually with:

 . /etc/courier/courierd; /usr/lib/courier/libexec/courier/courierd 

mail will be delivered to the vmail users' mailbox.

However when adding this to the entrypoint for the mta:

# start courierd in the background
/usr/lib/courier/share/courierctl.start

the delivery fails.

It seems like the main problem may have been /var/spool/courier*/track was not world-readable. So let's go back and maybe put courierd back in its own container one more time?

pcn commented 2 years ago

Local delivery can be done in each container so this'll move to having a courierd in each msa and mta container.