Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
181 views
migrate courier on Debian 10 to dovecot on Debian 11 with Froxlor
I use [Froxlor][1] on a debian 10 server only to manage my customers email accounts. Installed is Courier 5.0.6 and postfix 3.4.23. I plan this to first upgrade to Debian 11 then migrate to dovecot. How do I proceed?
I use [Froxlor] on a debian 10 server only to manage my customers email accounts. Installed is Courier 5.0.6 and postfix 3.4.23. I plan this to first upgrade to Debian 11 then migrate to dovecot. How do I proceed?
rubo77 (30435 rep)
Sep 2, 2023, 07:44 AM • Last activity: Sep 5, 2023, 07:57 AM
0 votes
1 answers
109 views
Optimize courier imap-ssl server configuration for large Emails
I use Courier with postfix on debian 11 and it all works fine, except, I cannot copy large emails into the IMAP Sent Folder. I cannot find the richt configuration files and options, where I set the maximum email-size for Courier IMAP
I use Courier with postfix on debian 11 and it all works fine, except, I cannot copy large emails into the IMAP Sent Folder. I cannot find the richt configuration files and options, where I set the maximum email-size for Courier IMAP
rubo77 (30435 rep)
Jun 13, 2022, 08:39 AM • Last activity: Jun 13, 2022, 09:18 AM
3 votes
1 answers
173 views
Courier IMAP, TLS, and trusted IPs
I run Courier IMAP with STARTTLS support. Currently, `IMAP_TLS_REQUIRED` is set to 0 (false), meaning that a client is fully permitted to use a clear-text login on an unsecured channel. Setting it to 1 (true) is not an option, as it breaks SquirrelMail (which can't use STARTTLS); however, I know for...
I run Courier IMAP with STARTTLS support. Currently, IMAP_TLS_REQUIRED is set to 0 (false), meaning that a client is fully permitted to use a clear-text login on an unsecured channel. Setting it to 1 (true) is not an option, as it breaks SquirrelMail (which can't use STARTTLS); however, I know for a fact that only certain IP addresses are legitimately going to be using unencrypted transport. In the simplest case, it should theoretically be possible to permit connections from 127.0.0.1 without encryption, while demanding STARTTLS before auth on all other connections. However, I've been unable to do this. Also, what if I want something more complicated - maybe there's a web server on 203.0.113.147 talking to an IMAP server on 203.0.113.148, with a secure LAN in between. (Ignore for now the challenge of proving that the LAN truly is secure.) Is there a way to set IMAP_TLS_REQUIRED differently for different connections?
rosuav (840 rep)
Feb 23, 2017, 10:31 PM • Last activity: Nov 8, 2020, 02:17 AM
0 votes
1 answers
91 views
courier-mta (esmtpd) only delivers messages to /var/lib/courier/tmp
I swear that courier-mta was working before, but now it has stopped working. The problem first started out with getting "submit: Permission denied" errors and I was unable to send emails to the machine. I chmod'd `/var/lib/courier/tmp` (via `chmod 771 /var/lib/courier/tmp`) which fixed this. But, no...
I swear that courier-mta was working before, but now it has stopped working. The problem first started out with getting "submit: Permission denied" errors and I was unable to send emails to the machine. I chmod'd /var/lib/courier/tmp (via chmod 771 /var/lib/courier/tmp) which fixed this. But, now all the messages are stuck in /var/lib/courier/tmp/NNNNNN and never get migrated to $HOME/Maildir . I cannot figure out what moves the files from /var/lib/courier/tmp to $HOME/Maildir so that I can use courier-pop. What does the moving? Note that my /etc/courier/courierd has DEFAULTDELIVERY=./Maildir in it. Thanks.
roberttheprogrammer (21 rep)
Dec 10, 2019, 02:54 AM • Last activity: Dec 10, 2019, 07:08 PM
0 votes
1 answers
42 views
Infer user (mail address) from the pid of imapd process
on my server is installed Courier Mail Server. It happens that one imapd process uses tons of the system resources blocking the entire server. I would like to track down the user (i.e. the mail address in Courier Mail) that is running that process. Please note: not the linux user, but the mail addre...
on my server is installed Courier Mail Server. It happens that one imapd process uses tons of the system resources blocking the entire server. I would like to track down the user (i.e. the mail address in Courier Mail) that is running that process. Please note: not the linux user, but the mail address. Is it possibile to infer the email address of a process given the PID of a imapd command process? Thank you,
Lorenzo (101 rep)
Oct 23, 2018, 10:53 AM • Last activity: Oct 23, 2018, 11:01 AM
1 votes
3 answers
302 views
ionice every imap process automatically
I want to ionice a process on its startup. In our hosting environment, we use old Paralells Confixx servers. (Yes I know, Confixx is outdated, but that is not the question). We use courier for mails and sometimes it happens, that the `/usr/bin/imap Maildir` process eats up the whole I/O which also c...
I want to ionice a process on its startup. In our hosting environment, we use old Paralells Confixx servers. (Yes I know, Confixx is outdated, but that is not the question). We use courier for mails and sometimes it happens, that the /usr/bin/imap Maildir process eats up the whole I/O which also causes high CPU load. We allways manually ioniced (ionice –c 3 –p [PID] ) the process and the I/O went down. What is the best way to automatically ionice every imap process? I’m not very experienced in the courier mail server.
Simon Sutter (51 rep)
May 24, 2018, 08:19 AM • Last activity: May 25, 2018, 02:20 PM
1 votes
0 answers
102 views
Setup mailboxes at external disk with postfix & courier
I have been investigating this for a long time but I'm not able to find a solution: I have an up&running mail server with Postfix and Courier in an Ubuntu Server. I'm using PAM users with a Maildir mailboxes structure. All this is working in the same hard disk. The problem is that I need to install/...
I have been investigating this for a long time but I'm not able to find a solution: I have an up&running mail server with Postfix and Courier in an Ubuntu Server. I'm using PAM users with a Maildir mailboxes structure. All this is working in the same hard disk. The problem is that I need to install/configure users mailboxes in a bigger disk unit already configured in my server ("sda" is where ALL is installed and "sdb" is where I want to setup the users mailboxes). Is not needed to migrate actual mailboxes. I,m not able to say to Courier to "look" at the users Maildir in the "sdb" drive when the mail client check the mailbox. Any help will be very appreciated. Thank you all!.
Emigdio Lopez (11 rep)
Aug 11, 2017, 02:43 PM
1 votes
1 answers
110 views
Postfix, Courier, and backups - appropriate file permissions?
Picture a mail store for virtual users. Arriving mail is managed by Postfix (creating new files); access to mail is provided by Courier IMAP (moving files around, deleting files, creating sent mail); and periodically, off-site backups are taken (reading files without changing anything). Obviously th...
Picture a mail store for virtual users. Arriving mail is managed by Postfix (creating new files); access to mail is provided by Courier IMAP (moving files around, deleting files, creating sent mail); and periodically, off-site backups are taken (reading files without changing anything). Obviously this will all work if every process runs as root; equally obviously, they shouldn't all run as root. The current setup has all the files owned by the postfix user and group. The Postfix and Courier processes all run as that uid/gid. But I would like to have the backup process run as a dedicated read-only user. Is there a way to tell Postfix and Courier to create their files as user backup:postfix with permissions 0464/0575? I'm on Debian GNU/Linux if that makes any difference.
rosuav (840 rep)
Mar 9, 2017, 07:22 PM • Last activity: Mar 9, 2017, 09:40 PM
0 votes
0 answers
169 views
mails delivered but courier-imap refuses connection
My mailserver delivers mails successfull in Maildir format. But I cannot connect to courier through IMAP. It refuses the connection. The firewall port 143 is opened. The server is running openSUSE 13.2. Here are my config file `/etc/courier/imapd` (removed comments for better view): ADDRESS=*** PORT...
My mailserver delivers mails successfull in Maildir format. But I cannot connect to courier through IMAP. It refuses the connection. The firewall port 143 is opened. The server is running openSUSE 13.2. Here are my config file /etc/courier/imapd (removed comments for better view): ADDRESS=*** PORT=143 MAXDAEMONS=40 MAXPERIP=20 PIDFILE=/run/imapd.pid TCPDOPTS="-nodnslookup -noidentlookup" LOGGEROPTS="-name=imapd" IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE" IMAP_KEYWORDS=1 IMAP_ACL=1 IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" IMAP_PROXY=0 IMAP_PROXY_FOREIGN=0 IMAP_IDLE_TIMEOUT=60 IMAP_MAILBOX_SANITY_CHECK=1 IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN" IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN" IMAP_DISABLETHREADSORT=0 IMAP_CHECK_ALL_FOLDERS=0 IMAP_OBSOLETE_CLIENT=0 IMAP_UMASK=022 IMAP_ULIMITD=65536 IMAP_USELOCKS=1 IMAP_SHAREDINDEXFILE=/etc/courier/shared/index IMAP_ENHANCEDIDLE=0 IMAP_TRASHFOLDERNAME=Trash IMAP_EMPTYTRASH=Trash:7 IMAP_MOVE_EXPUNGE_TO_TRASH=0 SENDMAIL=/usr/sbin/sendmail HEADERFROM=X-IMAP-Sender IMAPDSTART=YES MAILDIRPATH=Maildir Please tell me, if you need any other file to solve the problem.
alpham8 (61 rep)
Mar 17, 2015, 11:34 AM
0 votes
1 answers
423 views
exim + courier + squirrelmail mail delivery in wrong directories
I just installed an E-Mailserver using exim for SMTP, courier(-imap) for fetching mails via IMAPv4 and squirrelmail as web client for the end user. Everything works fine. But when I sent an E-Mail to adress on my server, it is stored in the file `/var/mail/ `, but not in the maildirs I created in `/...
I just installed an E-Mailserver using exim for SMTP, courier(-imap) for fetching mails via IMAPv4 and squirrelmail as web client for the end user. Everything works fine. But when I sent an E-Mail to adress on my server, it is stored in the file /var/mail/, but not in the maildirs I created in /home//Maildir I am also able to log into squirrelmail. Sending mails also works. The copy of the sent E-Mail is stored in the right directoy. So, how do I tell exim to deliver incoming E-Mails to /home//Maildir/INBOX? Edit: My exim config (removed comments for better view) primary_hostname = renamed-gaming.com domainlist local_domains = @ domainlist relay_to_domains = hostlist relay_from_hosts = localhost acl_smtp_rcpt = acl_check_rcpt acl_smtp_data = acl_check_data #tls_certificate = /etc/ssl/exim.crt #tls_privatekey = /etc/ssl/exim.pem daemon_smtp_ports = 25 : 465 : 587 tls_on_connect_ports = 465 never_users = root host_lookup = * rfc1413_hosts = * rfc1413_query_timeout = 5s ignore_bounce_errors_after = 2d timeout_frozen_after = 7d begin acl acl_check_rcpt: accept hosts = : control = dkim_disable_verify deny message = Restricted characters in address domains = +local_domains local_parts = ^[.] : ^.*[@%!/|] deny message = Restricted characters in address domains = !+local_domains local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./ accept local_parts = postmaster domains = +local_domains require verify = sender accept hosts = +relay_from_hosts control = submission control = dkim_disable_verify accept authenticated = * control = submission control = dkim_disable_verify require message = relay not permitted domains = +local_domains : +relay_to_domains require verify = recipient accept acl_check_data: accept begin routers dnslookup: driver = dnslookup domains = ! +local_domains transport = remote_smtp ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 system_aliases: driver = redirect allow_fail allow_defer data = ${lookup{$local_part}lsearch{/etc/aliases}} # user = exim file_transport = address_file pipe_transport = address_pipe userforward: driver = redirect check_local_user # local_part_suffix = +* : -* # local_part_suffix_optional file = $home/.forward # allow_filter no_verify no_expn check_ancestor file_transport = address_file pipe_transport = address_pipe reply_transport = address_reply localuser: driver = accept check_local_user # local_part_suffix = +* : -* # local_part_suffix_optional transport = local_delivery cannot_route_message = Unknown user begin transports remote_smtp: driver = smtp local_delivery: driver = appendfile file = /var/mail/$local_part delivery_date_add envelope_to_add return_path_add # group = mail # mode = 0660 address_pipe: driver = pipe return_output address_file: driver = appendfile delivery_date_add envelope_to_add return_path_add address_reply: driver = autoreply # Address or Domain Error Retries # ----------------- ----- ------- * * F,2h,15m; G,16h,1h,1.5; F,4d,6h begin rewrite begin authenticators
alpham8 (61 rep)
Jan 15, 2015, 08:34 PM • Last activity: Jan 16, 2015, 10:11 PM
2 votes
0 answers
875 views
Maildir permissions for courier
I'm having difficulty with maildir permissions for [**Courier**][1], an IMAP server I've installed on a box running Debian Wheezy. The mail directory I use is `/var/mail/users`, with the following permissions: drwxr-sr-x 3 mail mail 4.0K Oct 14 08:09 users This directory has `chmod 750` permissions....
I'm having difficulty with maildir permissions for **Courier** , an IMAP server I've installed on a box running Debian Wheezy. The mail directory I use is /var/mail/users, with the following permissions: drwxr-sr-x 3 mail mail 4.0K Oct 14 08:09 users This directory has chmod 750 permissions. The individual *user* directories inside /var/mail/users have the following permissions: drwx------ 6 johnsmith johnsmith 4.0K Oct 14 08:13 johnsmith Note that the individual user directories are owned by the user, and have permissions of 700. The problem is that this causes courier to fail when it tries to access the user directories. (The error message courier gives is vague, but I'm certain it's a permissions issue): # telnet localhost 143 Trying ::1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information. 0 LOGIN johnsmith@myhost.com mypassword 0 OK LOGIN Ok. 0 STATUS INBOX (MESSAGES UNSEEN) 0 NO [ALERT] STATUS failed Note that the STATUS command fails. Courier doesn't say why and there's nothing in /var/log/mail.log, but I'm 99% sure it's a permissions issue, because if I change the permissions on /var/mail/users/johnsmith to 777, courier has no problem with the STATUS command and reports success. But of course, I don't want to set permissions to 777. I thought perhaps the problem is that the /var/mail/users/johnsmith directory should be owned by mail instead of johnsmith. So I tried doing that, but then courier fails on the LOGIN command: 0 LOGIN johnsmith@myhost.com mypassword * BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid: So what are the safest correct permissions I should set for the maildir (and maildir sub directories) so that courier can successfully login and access each dir?
Siler (153 rep)
Oct 14, 2014, 12:25 PM • Last activity: Oct 14, 2014, 12:30 PM
1 votes
1 answers
653 views
Installing courier-mta causes sendmail to be installed instead
My Debian workstation will not install courier-mta. The command `aptitude install courier-mta` appears to complete without error, but actually installs sendmail instead. # What I did I'll start without any packages installed which provide mail-transfer-agent: dpkg --get-selections 'courier*' 'sendma...
My Debian workstation will not install courier-mta. The command aptitude install courier-mta appears to complete without error, but actually installs sendmail instead. # What I did I'll start without any packages installed which provide mail-transfer-agent: dpkg --get-selections 'courier*' 'sendmail*' 'exim*' sensible-mda | awk '{print $1}' | xargs sudo dpkg --purge --force-depends ... root@treebeard:/etc/logcheck/violations.ignore.d$ dpkg -l 'courier*' 'sendmail*' 'exim*' sensible-mda Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===============================================-============================-============================-=================================================================================================== un exim4 (no description available) dpkg-query: no packages found matching courier* dpkg-query: no packages found matching sendmail* dpkg-query: no packages found matching sensible-mda And then install courier-mta: root@treebeard:/etc/logcheck/violations.ignore.d$ sudo aptitude install courier-mta The following NEW packages will be installed: courier-authdaemon{a} courier-authlib{a} courier-authlib-userdb{a} courier-base{a} courier-mta 0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,261 kB of archives. After unpacking 2,887 kB will be used. Do you want to continue? [Y/n/?] Preconfiguring packages ... Configuring courier-base ------------------------ Courier uses several configuration files in /etc/courier. Some of these files can be replaced by a subdirectory whose contents are concatenated and treated as a single, consolidated, configuration file. The web-based administration provided by the courier-webadmin package relies on configuration directories instead of configuration files. If you agree, any directories needed for the web-based administration tool will be created unless there is already a plain file in place. Create directories for web-based administration? no Configuring courier-mta ----------------------- Please specify a valid email domain. Most header rewriting functions will append this domain to all email addresses which do not specify a domain, such as local accounts. Default domain: fake.domain Please specify a valid value for the "From" header for mail delivery notifications. These notifications cannot be sent without that setting. "From" header for delivery notifications: noreply@fake.domain Selecting previously unselected package courier-authlib. (Reading database ... 249566 files and directories currently installed.) Unpacking courier-authlib (from .../courier-authlib_0.63.0-6+b1_i386.deb) ... Selecting previously unselected package courier-authdaemon. Unpacking courier-authdaemon (from .../courier-authdaemon_0.63.0-6+b1_i386.deb) ... Selecting previously unselected package courier-authlib-userdb. Unpacking courier-authlib-userdb (from .../courier-authlib-userdb_0.63.0-6+b1_i386.deb) ... Selecting previously unselected package courier-base. Unpacking courier-base (from .../courier-base_0.68.2-1_i386.deb) ... Selecting previously unselected package courier-mta. Unpacking courier-mta (from .../courier-mta_0.68.2-1_i386.deb) ... Adding 'diversion of /usr/bin/addcr to /usr/bin/addcr.ucspi-tcp by courier-mta' Adding 'diversion of /usr/share/man/man1/addcr.1.gz to /usr/share/man/man1/addcr.ucspi-tcp.1.gz by courier-mta' Processing triggers for man-db ... Setting up courier-authlib (0.63.0-6+b1) ... Setting up courier-authdaemon (0.63.0-6+b1) ... [ ok ] Starting Courier authentication services: authdaemond. Setting up courier-authlib-userdb (0.63.0-6+b1) ... Setting up courier-base (0.68.2-1) ... update-alternatives: using /usr/bin/deliverquota.courier to provide /usr/bin/deliverquota (deliverquota) in auto mode update-alternatives: using /usr/share/man/man5/maildir.courier.5.gz to provide /usr/share/man/man5/maildir.5.gz (maildir.5.gz) in auto mode update-alternatives: using /usr/bin/maildirmake.courier to provide /usr/bin/maildirmake (maildirmake) in auto mode update-alternatives: using /usr/share/man/man7/maildirquota.courier.7.gz to provide /usr/share/man/man7/maildirquota.7.gz (maildirquota.7.gz) in auto mode update-alternatives: using /usr/bin/makedat.courier to provide /usr/bin/makedat (makedat) in auto mode Setting up courier-mta (0.68.2-1) ... update-alternatives: using /usr/bin/lockmail.courier to provide /usr/bin/lockmail (lockmail) in auto mode update-alternatives: using /usr/bin/preline.courier to provide /usr/bin/preline (preline) in auto mode Starting Courier mail server: done. Starting Courier mail filter: done. Starting Courier SMTP server: done. Current status: 0 broken [-2]. # The problem courier-mta appeared to have installed without error, and yet courier-mta is not installed. Instead, sendmail is installed: root@treebeard:/etc/logcheck/violations.ignore.d$ dpkg -l 'courier*' 'sendmail*' 'exim*' sensible-mda Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===============================================-============================-============================-=================================================================================================== ii courier-authdaemon 0.63.0-6+b1 i386 Courier authentication daemon ii courier-authlib 0.63.0-6+b1 i386 Courier authentication library ii courier-authlib-userdb 0.63.0-6+b1 i386 userdb support for the Courier authentication library un courier-authmysql (no description available) un courier-authpostgresql (no description available) ii courier-base 0.68.2-1 i386 Courier mail server - base system un courier-debug (no description available) un courier-doc (no description available) un courier-faxmail (no description available) un courier-filter-perl (no description available) un courier-imap (no description available) rc courier-mta 0.68.2-1 i386 Courier mail server - ESMTP daemon un couriergrey (no description available) un exim4 (no description available) ii sendmail 8.14.4-4 all powerful, efficient, and scalable Mail Transport Agent ii sendmail-base 8.14.4-4 all powerful, efficient, and scalable Mail Transport Agent ii sendmail-bin 8.14.4-4 i386 powerful, efficient, and scalable Mail Transport Agent ii sendmail-cf 8.14.4-4 all powerful, efficient, and scalable Mail Transport Agent un sendmail-doc (no description available) un sendmail-tls (no description available) ii sensible-mda 8.14.4-4 i386 Mail Delivery Agent wrapper sendmail-bin (and its requirements) have been installed. Packages required by courier-mta have been installed, but courier-mta itself has not. # History This is a Debian Wheezy (stable) box. It was running Debian Jessy (testing), but I downgraded it to Wheezy by means of this /etc/apt/preferences file: Package: * Pin: release a=stable Pin-Priority: 1001 and by changing /etc/apt/sources file to: deb http://ftp.debian.org/debian wheezy main non-free contrib deb http://security.debian.org/ wheezy/updates main contrib non-free and by a means of a long series of apt-get/dpkg commands which I do not recall. I do recall there being much swearing. # The question **Why, when I try to install courier-mta, is sendmail-bin being installed instead?**
Wayne Conrad (602 rep)
Jun 4, 2014, 05:21 PM • Last activity: Jun 4, 2014, 06:53 PM
1 votes
1 answers
671 views
Courier-imap with sendmail setup: why is my IMAP inbox empty?
I've successfully installed sendmail, but when I connect to the Courier IMAP server via Outlook, the Inbox is listed as empty. When I check the inbox with Alpine locally on the server, it has content though. Why? I do see files with content in /var/mail . Is that not where Courier-imap checks for ma...
I've successfully installed sendmail, but when I connect to the Courier IMAP server via Outlook, the Inbox is listed as empty. When I check the inbox with Alpine locally on the server, it has content though. Why? I do see files with content in /var/mail . Is that not where Courier-imap checks for mail? The setup is pretty clean - I run Ubuntu 12.04 on AWS, have installed sendmail and courier-imap. sendmail was configured with sendmailconfigure and it works well to both send and receive mail. The problem is with courier.
Nilzor (111 rep)
Nov 15, 2012, 01:47 PM • Last activity: Mar 6, 2014, 08:05 PM
1 votes
1 answers
7995 views
Courier IMAP cannot find my Maildir but can find root's Maildir
I'm running into a weird issue setting up Postfix and Courier IMAP on a clean Ubuntu 13.04 install. I'm using [this tutorial][1], and am currently [Testing Courier IMAP][2]. When I try to login with root, everything's fine (this is part of a netcat connection): a login root my-pass a OK LOGIN Ok. a...
I'm running into a weird issue setting up Postfix and Courier IMAP on a clean Ubuntu 13.04 install. I'm using this tutorial , and am currently Testing Courier IMAP . When I try to login with root, everything's fine (this is part of a netcat connection): a login root my-pass a OK LOGIN Ok. a logout * BYE Courier-IMAP server shutting down a OK LOGOUT completed However, when I try to login with my own account, I get an error: a login camilstaps my-other-pass * BYE [ALERT] Fatal error: No such file or directory: No such file or directory The mail.log: Jun 2 13:47:37 cs imapd: Connection, ip=[::ffff:127.0.0.1] # this is the root login Jun 2 13:47:51 cs imapd: LOGIN, user=root, ip=[::ffff:127.0.0.1], port=, protocol=IMAP Jun 2 13:48:11 cs imapd: LOGOUT, user=root, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=9, sent=80, time=20 Jun 2 13:50:59 cs imapd: Connection, ip=[::ffff:127.0.0.1] # this is the other login Jun 2 13:51:07 cs imapd: chdir Maildir: No such file or directory Jun 2 13:51:07 cs imapd: camilstaps: No such file or directory And the mail.err, not really adding something: Jun 2 13:51:07 cs imapd: camilstaps: No such file or directory I configured Postfix to use the Maildir format using /var/mail/%u where %u is the username. At first, I thought the camilstaps user missed his mail folder. However, it does have one similar to root's one: root@cs:/# tree -CdA /var/mail /var/mail ├── camilstaps │ └── Maildir │ ├── cur │ ├── new │ └── tmp └── root └── Maildir ├── cur ├── new └── tmp Then I thought the camilstaps user had a different maildir in the MAIL constant, however... root@cs:/# echo $MAIL /var/mail/root camilstaps@cs:/$ echo $MAIL /var/mail/camilstaps What's going on here? How can I fix this? For what it's worth, I'm on Ubuntu Server 13.04. --- With help from the comments, I found out something interesting / possibly useful: * There was an old Maildir in /root. When I remove that one, I get the same error when logging in as root to the IMAP server. * When I add a Maildir directory to the homedir of the camilstaps user, I don't get the error anymore. For some reason, the IMAP server doesn't look in /var/mail/%u (%u = username) but in %h/Maildir (%h = homedir). The $MAIL variable has been set correctly, so what could be the problem here?
user37050
Jun 2, 2013, 12:00 PM • Last activity: Aug 27, 2013, 09:45 PM
1 votes
0 answers
217 views
Courier-MTA not listening, how to increase debugging information?
i Follow tutorial from https://wiki.archlinux.org/index.php/Courier_MTA based on systemctl status command, the server is working fine # systemctl status courier courier.service - Courier Daemon Loaded: loaded (/usr/lib/systemd/system/courier.service; disabled) Active: active (running) since Tue 2013...
i Follow tutorial from https://wiki.archlinux.org/index.php/Courier_MTA based on systemctl status command, the server is working fine # systemctl status courier courier.service - Courier Daemon Loaded: loaded (/usr/lib/systemd/system/courier.service; disabled) Active: active (running) since Tue 2013-08-27 15:40:16 WIT; 35s ago Process: 509 ExecStop=/usr/sbin/courier stop (code=exited, status=0/SUCCESS) Process: 511 ExecStart=/usr/sbin/courier start (code=exited, status=0/SUCCESS) Main PID: 516 (courierd) CGroup: name=systemd:/system/courier.service ├─516 /usr/lib/courier/courierd ├─517 /usr/lib/courier/courierd ├─518 ./courieruucp ├─519 ./courierlocal ├─520 ./courierfax ├─521 ./courieresmtp └─522 ./courierdsn Aug 27 15:40:16 gravity courierd: Started ./courieruucp, pid=518, maxdels=4, maxhost=4, maxrcpt=16 Aug 27 15:40:16 gravity courierd: Started ./courierlocal, pid=519, maxdels=10, maxhost=4, maxrcpt=1 Aug 27 15:40:16 gravity courierd: Started ./courierfax, pid=520, maxdels=1, maxhost=1, maxrcpt=1 Aug 27 15:40:16 gravity courierd: Started ./courieresmtp, pid=521, maxdels=40, maxhost=4, maxrcpt=100 Aug 27 15:40:16 gravity courierd: Started ./courierdsn, pid=522, maxdels=4, maxhost=1, maxrcpt=1 Aug 27 15:40:16 gravity courierd: queuelo=200, queuehi=400 Aug 27 15:40:16 gravity courierd: Purging /var/spool/courier/msgq Aug 27 15:40:16 gravity courierd: Purging /var/spool/courier/msgs Aug 27 15:40:16 gravity courierd: Waiting. shutdown time=Tue Aug 27 16:40:16 2013, wakeup time=Tue Aug 27 15:50:44 2013, queuedeliverin...rogress=0 Aug 27 15:40:16 gravity courieruucp: ERROR: no uucp user found, outbound UUCP is DISABLED! but the server was not listening at all $ sudo netstat -ant | grep :25 $ sudo netstat -ant | grep :143 the start configuration # grep START= /etc/courier/* /etc/courier/esmtpd:ESMTPDSTART=YES /etc/courier/esmtpd-msa:ESMTPDSTART=YES /etc/courier/esmtpd-ssl:ESMTPDSSLSTART=NO /etc/courier/imapd:IMAPDSTART=YES /etc/courier/imapd-ssl:IMAPDSSLSTART=NO /etc/courier/pop3d:POP3DSTART=YES /etc/courier/pop3d-ssl:POP3DSSLSTART=NO the log: Aug 27 15:40:16 gravity courierd: Loading STATIC transport module libraries. Aug 27 15:40:16 gravity courierd: Courier 0.71 Copyright 1999-2012 Double Precision, Inc. Aug 27 15:40:16 gravity courierd: Installing [0/0] Aug 27 15:40:16 gravity courierd: Installing uucp Aug 27 15:40:16 gravity courierd: Installed: module.uucp - Courier 0.71 Copyright 1999-2012 Double Precision, Inc. Aug 27 15:40:16 gravity courierd: Installing local Aug 27 15:40:16 gravity courierd: Installed: module.local - Courier 0.71 Copyright 1999-2012 Double Precision, Inc. Aug 27 15:40:16 gravity courierd: Installing fax Aug 27 15:40:16 gravity courierd: Installed: module.fax - Courier 0.71 Copyright 1999-2012 Double Precision, Inc. Aug 27 15:40:16 gravity courierd: Installing esmtp Aug 27 15:40:16 gravity courierd: Installed: module.esmtp - Courier 0.71 Copyright 1999-2012 Double Precision, Inc. Aug 27 15:40:16 gravity courierd: Installing dsn Aug 27 15:40:16 gravity courierd: Installed: module.dsn - Courier 0.71 Copyright 1999-2012 Double Precision, Inc. Aug 27 15:40:16 gravity courierd: Initializing uucp Aug 27 15:40:16 gravity courierd: Initializing local Aug 27 15:40:16 gravity courierd: Initializing fax Aug 27 15:40:16 gravity courierd: Initializing esmtp Aug 27 15:40:16 gravity courierd: Initializing dsn Aug 27 15:40:16 gravity courierd: Started ./courieruucp, pid=518, maxdels=4, maxhost=4, maxrcpt=16 Aug 27 15:40:16 gravity courierd: Started ./courierlocal, pid=519, maxdels=10, maxhost=4, maxrcpt=1 Aug 27 15:40:16 gravity courierd: Started ./courierfax, pid=520, maxdels=1, maxhost=1, maxrcpt=1 Aug 27 15:40:16 gravity courierd: Started ./courieresmtp, pid=521, maxdels=40, maxhost=4, maxrcpt=100 Aug 27 15:40:16 gravity courierd: Started ./courierdsn, pid=522, maxdels=4, maxhost=1, maxrcpt=1 Aug 27 15:40:16 gravity courierd: queuelo=200, queuehi=400 Aug 27 15:40:16 gravity courierd: Purging /var/spool/courier/msgq Aug 27 15:40:16 gravity courierd: Purging /var/spool/courier/msgs Aug 27 15:40:16 gravity courierd: Waiting. shutdown time=Tue Aug 27 16:40:16 2013, wakeup time=Tue Aug 27 15:50:44 2013, queuedelivering=1, inprogress=0 Aug 27 15:40:16 gravity courieruucp: ERROR: no uucp user found, outbound UUCP is DISABLED! how to increase debugging information?
Kokizzu (10481 rep)
Aug 27, 2013, 08:49 AM • Last activity: Aug 27, 2013, 09:45 PM
Showing page 1 of 15 total questions