LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2012, 12:23 PM   #1
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Rep: Reputation: 2
GUI Mail Client configuration with sendmail server


Hello,
I have started sendmail (/etc/rc.d/rc.sendmail) for the first time, to see how it works, and it works fine so far, i have tested it with pine, not any configuration needed. My next question is how to set up other X Window mail clients, like kmail, Seamonkey Mail, Thunderbird Mail Client and so on, to work with the server. How to set up the e-mail accounts for these programs?
Thanks.
 
Old 07-20-2012, 08:37 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Hi,

For now you can only use sendmail as an smtp server to send email.
What you need is to install a pop3 or imap server (or both), so you can use any of clients mentioned to get your mail using the pop3 or imap protocol.
You can have a look at dovecot that can be configured as a pop3 and imap server and comes with most distros.

Regards
 
1 members found this post helpful.
Old 07-21-2012, 06:58 AM   #3
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
Does postfix do the same things like dovecot - i mean pop3 and/or imap? Is it available for slackware?
 
Old 07-21-2012, 09:19 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by mitusf View Post
Does postfix do the same things like dovecot - i mean pop3 and/or imap? Is it available for slackware?
Postfix is a mta just like sendmail is.
If you want your gui clients to get mail you need a pop3/imap server.
Anyway postfix is not a default Slackware package, but you can install it from SlackBuilds. You should do the same if you want to install dovecot.

Regards
 
1 members found this post helpful.
Old 07-21-2012, 09:39 AM   #5
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
ok, thank you for the answers.

Best regards.
 
Old 07-22-2012, 09:34 AM   #6
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
Hello again,

i have managed to install and run dovecot, with some common configuration settings, and it worked. But still i can not access pop3 account from within kmail or seamonkey mail, or else. I assume the accounts are created from the system users. (like root or normal users). I tried different configurations in kmail but i couldn't access the server for retrieving mail. I think that maybe the server configuration may be wrong, i don't know. Can someone help me? Thanks.
 
Old 07-22-2012, 01:00 PM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Hi,

If you want to use dovecot with system users you need to use:
Code:
passdb {
  driver = shadow
}
Also you need to take care to define the mail spool directory. For Slack it would be by default:
Code:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
And you can always take a look at /var/log/maillog to see what's wrong/

Anyway if you still have problems, start a new thread, posting the config file(s) and the logs with the errors you get

Regards
 
1 members found this post helpful.
Old 07-22-2012, 01:46 PM   #8
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
ok, i switched the passdb driver option from pam to shadow and it seems it works because now it didn't wait very much at the autentification process like before. But there is still a problem with the mail dir, i think the writing rights are different from what they should be, so the user under which the process is run doesn't have the rights. ok, i'll start another thread. thanks.
 
Old 07-22-2012, 02:51 PM   #9
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
ok, i switched the passdb driver option from pam to shadow and it seems it works because now it didn't wait very much at the autentification process like before.
Slackware is not using pam and sure it's not going to use it at least in the (near) future!!!!

Quote:
But there is still a problem with the mail dir, i think the writing rights are different from what they should be, so the user under which the process is run doesn't have the rights
Maybe try this:
Code:
mail_access_groups = mail
 
1 members found this post helpful.
Old 07-22-2012, 04:10 PM   #10
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
i tested it in 2 situations:
1. mail_location = mbox:~/mail:INBOX=/var/mail/%u
2. mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u

and the result was apparently the same (in the kmail client):
Error while checking account 127.0.0.1 for new mail:
Could not login to 127.0.0.1. The password may be wrong

The server said: "[IN-USE] Couldn't open INBOX: Internal error occurred: Refer to server log for more information. [2012-07-22 22:54:53]"


And after checking the /var/log/mailog:
Quote:
Jul 22 22:54:53 libertate20dec1989 dovecot: pop3-login: Login: user=<tri>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2690, TLS
Jul 22 22:54:53 libertate20dec1989 dovecot: pop3(tri): Error: chown(/home/tri/mail/.imap/INBOX, group=0(root)) failed: Operation not permitted (egid=1000(tri), group based on /var/mail/tri - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
Jul 22 22:54:53 libertate20dec1989 dovecot: pop3(tri): Error: mkdir(/home/tri/mail/.imap/INBOX) failed: Operation not permitted
Jul 22 22:54:53 libertate20dec1989 dovecot: pop3(tri): Error: Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2012-07-22 22:54:53]
Jul 22 22:54:53 libertate20dec1989 dovecot: pop3(tri): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0
Jul 22 22:56:35 libertate20dec1989 dovecot: master: Warning: Killed with signal 15 (by pid=2708 uid=0 code=kill)
Jul 22 22:56:38 libertate20dec1989 dovecot: master: Dovecot v2.0.12 starting up (core dumps disabled)
Jul 22 22:56:45 libertate20dec1989 dovecot: pop3-login: Login: user=<tri>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2723, TLS
Jul 22 22:56:45 libertate20dec1989 dovecot: pop3(tri): Error: chown(/home/tri/mail/.imap/INBOX, group=0(root)) failed: Operation not permitted (egid=1000(tri), group based on /var/spool/mail/tri - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
Jul 22 22:56:45 libertate20dec1989 dovecot: pop3(tri): Error: mkdir(/home/tri/mail/.imap/INBOX) failed: Operation not permitted
Jul 22 22:56:45 libertate20dec1989 dovecot: pop3(tri): Error: Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2012-07-22 22:56:45]
Jul 22 22:56:45 libertate20dec1989 dovecot: pop3(tri): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0
 
Old 07-22-2012, 04:44 PM   #11
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
and another issue:

the /var/mail/tri file has owner attributes tri:root instead of tri:mail. The same with the other accounts on the system which has been tested with pine/sendmail. The ones not touched by the former couple (pine/sendmail) have 'mail' group attribute. At least this is what i think it is.

So, i think the mail_access_groups=mail setting is in vain, in this case. Can you help. Sorry for not starting another thread already, but i feel i'm a few steps away before finishing the task.

Last edited by mitusf; 07-22-2012 at 04:49 PM.
 
Old 07-22-2012, 05:05 PM   #12
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
ok, finally a managed to get mail from kmail client. Now i'm worried about this problem:

Quote:
# Grant access to these supplementary groups for mail processes. Typically
# these are used to set up access to shared mailboxes. Note that it may be
# dangerous to set these if users can create symlinks (e.g. if "mail" group is
# set here, ln -s /var/mail ~/mail/var could allow a user to delete others'
# mailboxes, or ln -s /secret/shared/box ~/mail/mybox would allow reading it).
mail_access_groups = mail
 
Old 07-22-2012, 06:03 PM   #13
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Jul 22 22:56:45 libertate20dec1989 dovecot: pop3(tri): Error: chown(/home/tri/mail/.imap/INBOX, group=0(root)) failed: Operation not permitted (egid=1000(tri), group based on /var/spool/mail/tri - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
Quote:
ok, finally a managed to get mail from kmail client. Now i'm worried about this problem:

Quote:
# Grant access to these supplementary groups for mail processes. Typically
# these are used to set up access to shared mailboxes. Note that it may be
# dangerous to set these if users can create symlinks (e.g. if "mail" group is
# set here, ln -s /var/mail ~/mail/var could allow a user to delete others'
# mailboxes, or ln -s /secret/shared/box ~/mail/mybox would allow reading it).
mail_access_groups = mail
Usually mail users do not have a valid shell, so they cannot login and run commands, but if you're worried about that, you should follow the 1st solution in the instructions in the link given in the logs. I.e.
Quote:
If the group doesn't actually matter, change the permissions so that the group isn't copied (e.g. chmod 0600 /var/mail/*)
Regards
 
1 members found this post helpful.
Old 07-22-2012, 06:06 PM   #14
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 141

Original Poster
Rep: Reputation: 2
ok, thanks, one more question: why some users have /var/mail/user file as user:root and others user:mail? How these should be?
 
Old 07-23-2012, 01:07 AM   #15
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by mitusf View Post
ok, thanks, one more question: why some users have /var/mail/user file as user:root and others user:mail? How these should be?
Dunno. The default in Slackware is that /var/spool/mail/user (/var/mail is a symlink of /var/spool/mail) is to be owned by user:mail
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail client configuration settings to smtp server premkumardr Linux - Newbie 1 12-01-2011 12:38 PM
Sendmail Client with Comcast ISP Configuration cool47 Linux - Networking 0 01-11-2010 03:05 PM
mail/sendmail configuration reflection666 Linux - Newbie 2 04-07-2005 07:21 AM
GUI email client which forwards mail inline ptrbee Linux - Newbie 2 05-11-2004 10:41 AM
sendmail problem with mozilla mail client pd5c18 Linux - Networking 1 04-12-2004 08:31 AM


All times are GMT -5. The time now is 01:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration