Package Details: courier-mta 1.0.9-1

Git Clone URL: https://aur.archlinux.org/courier-mta.git (read-only)
Package Base: courier-mta
Description: IMAP(s)/POP3(s) and SMTP Server with ML-manager, webmail and webconfig
Upstream URL: http://courier-mta.org
Licenses: GPL2
Conflicts: courier-imap, courier-maildrop, imap-server, smtp-forwarder, smtp-server, ucspi-tcp
Provides: courier-imap, courier-maildrop, imap-server, pop3-server, smtp-forwarder, smtp-server
Submitter: Svenstaro
Maintainer: vario
Last Packager: vario
Votes: 12
Popularity: 0.000000
First Submitted: 2012-10-13 09:56
Last Updated: 2019-08-31 20:46

Required by (92)

Sources (14)

Latest Comments

« First ‹ Previous 1 2 3 4 5

andrej commented on 2013-07-09 02:30

One more comment: The reason why imapd doesn't work is fairly simple:

couriertcpd starts /usr/bin/imapd
/usr/bin/imapd is a symlink to /usr/share/imapd
/usr/share/imapd is a script that starts /usr/bin/imapd ... and that's a cycle.

andrej commented on 2013-07-09 02:10

There's something wrong with this package right now. imapd doesn't work, at least not with TLS. The connection is established, but nothing else happens.

Some files end up directly in /usr/share (imapd, imapd-ssl, courierctl.start, esmtpd, esmtpd-ssl and multiple others), which is quite messy. Symlinks from /usr/bin are created, but it's still somewhat weird.

eigengrau commented on 2013-04-04 18:23

Also, please correct me if I'm missing something, but shouldn't the /usr/sbin/authtest binary have root-only permissions? It allows me to retrieve all the hashes from the shadowed passwd as a normal user.. o_O

eigengrau commented on 2013-04-04 18:12

Systemd units do not directly support bash syntax. Lines such as:
> ExecStartPre=[ -d /var/run/courier ] || mkdir -p /var/run/courier && chown courier:courier /var/run/courier
should instead say:
> ExecStartPre=/bin/bash -c '[-d /var/run/courier ] ...... '

onny commented on 2013-01-05 11:08

Thank you andrej for testing. Courier is a very complex package and not easy to maintain. I'm very glad to see some support!
I adopted your suggestions to the package. Instead of removing the PIDFile-part from the service file, I added an option to /etc/courier/courierd to create the PID-file. Hope that fixes it

onny commented on 2013-01-05 11:07

Thank you andrej for testing. Courier is a very complex package and not easy to maintain. I'm very glad to see some support!
I adopted your suggestions to the package. Instead of removing the PIDFile-part from the service file, I added an option to /etc/courier/courierd to create the PID-file. Hope that fixes it

andrej commented on 2013-01-05 02:40

Thx a lot for the update! I have some suggestions, based on the adjustmets I made to the units:

1) An extra unit for 'courierfilter' is needed, I called it courier-courierfilter.service in my configuration. Something like this works for me:

[Unit]
Description=Courier filter Daemon

[Service]
Type=forking
ExecStartPre=[ -d /var/run/courier ] || mkdir -p /var/run/courier && chown courier:courier /var/run/courier
ExecStart=/usr/sbin/courierfilter start
ExecStop=/usr/sbin/courierfilter stop
PIDFile=/var/run/courier/courierfilter.pid

[Install]
WantedBy=multi-user.target

2) Caution, as noted here [http://old.nabble.com/PID-file-for-courierd-td23364995.html], the 'courier' daemon does *not* create a PID file. Consequently, systemctl start courier will freeze when run from the shell and it will time out, killing the courier processes, when run automatically. (It waits for the PID file that never appears.) Removing the 'PIDFile=...' line from courier.service solves the problem. (Well, it's in no way the best solution, but it works.)

3) When filtering is on, esmtpd and esmtpd-ssl depend on it. They do not 'Require' filtering, for it may not be active, but they should definitely be started 'After' the filter, so this should appear in courier-esmtpd.service and courier-esmtpd-ssl.service:

After=courier-courierfilter.service

Once again, thank you very much for maintaining this package!

onny commented on 2013-01-04 04:04

@abdrej: done, feedback welcome. If you like, also update the wiki regarding courier documentation

andrej commented on 2012-12-31 04:08

Units for systemd would be really great... :-)