Re: First steps in Dovecot; IMAP not working
Marnaud anic297@mac.com writes:
"mailtest", the new user, is in group mail(8). In addition, I've added write permission for "others" to /var/mail. Now, I'm trying to send a message to "mailtest" from another, working, e-mail account and nothing happens. This time, "doveadm log errors" is empty.
In short, I don't get any error but no mail either.
Two things to check:
# What does dovecot think user "mailtest" has?
doveadm user mailtest
# The sticky bit should be set on /var/mail (you didn't mention
# setting it. It probably doesn't have bearing on this problem,
# but it will make it a little more secure.
chmod 1777 /var/mail
Since "doveadm log errors" returns an empty result, where should I look for the problem?
I usually don't use this command, I look at the log file which seems to have more details. Try looking there for more diagnostics. Also, look at your MTA's logs as well.
Joseph Tam jtam.home@gmail.com
Two things to check:
# What does dovecot think user "mailtest" has? doveadm user mailtest
I get this: field value uid 1002 gid 8 home /home/mailtest mail mbox:~/mail:INBOX=/var/mail/mailtest system_groups_user mailtest
# The sticky bit should be set on /var/mail (you didn't mention # setting it. It probably doesn't have bearing on this problem, # but it will make it a little more secure. chmod 1777 /var/mail
You're right, I didn't do it.
I usually don't use this command, I look at the log file which seems to have more details. Try > looking there for more diagnostics. Also, look at your MTA's logs as well.
I'll try to locate them. Thank you.
On 2016-10-18 07:55, Moi wrote:
Two things to check:
# What does dovecot think user "mailtest" has? doveadm user mailtest
I get this: field value uid 1002 gid 8 home /home/mailtest mail mbox:~/mail:INBOX=/var/mail/mailtest
this looks wrong I don't think /var should be your home directory.
system_groups_user mailtest
# The sticky bit should be set on /var/mail (you didn't mention # setting it. It probably doesn't have bearing on this problem, # but it will make it a little more secure. chmod 1777 /var/mail
You're right, I didn't do it.
I usually don't use this command, I look at the log file which seems to have more details. Try > looking there for more diagnostics. Also, look at your MTA's logs as well.
I'll try to locate them. Thank you.
I always install "locate" and whenever I change anything do as root "/usr/bin/updatedb" then you can type "locate *.log"
key ID: 0x4BFEBB31
On 18.10.2016 13:42, mick crane wrote:
On 2016-10-18 07:55, Moi wrote:
Two things to check:
# What does dovecot think user "mailtest" has? doveadm user mailtest
I get this: field value uid 1002 gid 8 home /home/mailtest mail mbox:~/mail:INBOX=/var/mail/mailtest
this looks wrong I don't think /var should be your home directory.
It's just location of INBOX file, which is in this case just right.
system_groups_user mailtest
# The sticky bit should be set on /var/mail (you didn't mention # setting it. It probably doesn't have bearing on this problem, # but it will make it a little more secure. chmod 1777 /var/mail
You're right, I didn't do it.
I usually don't use this command, I look at the log file which seems to have more details. Try > looking there for more diagnostics. Also, look at your MTA's logs as well.
I'll try to locate them. Thank you.
I always install "locate" and whenever I change anything do as root "/usr/bin/updatedb" then you can type "locate *.log"
Aki
I always install "locate" and whenever I change anything do as root "/usr/bin/updatedb" then you can type "locate *.log"
Thank you. It worked and I now have several log files to check.
In the meantime, I've tried once again to send a message to "mailtest" from an outside address; this time, I got an error reply:
This report relates to a message you sent with the following header fields:
Message-id: 00e201d2290f$67da8c70$378fa550$@mac.com Date: Tue, 18 Oct 2016 09:15:21 +0200 From: Moi To: 'Mail Test' mailtest@barbu.sytes.net Subject: Test
Your message cannot be delivered to the following recipients:
Recipient address: mailtest@barbu.sytes.net Reason: Illegal host/domain name found <end of reply>
Yet another area with a problem; at least this is now a valid reason for it to not work. Is this a misconfiguration of my DNS server?
participants (4)
-
Aki Tuomi
-
Joseph Tam
-
mick crane
-
Moi