LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2013, 08:11 AM   #1
oso_togari
Member
 
Registered: Jan 2008
Distribution: SOLARIS 9, RHEL4
Posts: 39

Rep: Reputation: 0
DOVECOT questions.....RHEL 5


Hi all

two questions:

* 1: i can't installdovecot via yum repositories (EPEL or sourceforge)....why is not includede on that repos?

So i install via ./configure, make, make install(maybe my problem starts here). Dovecot 2.1.15...all seems OK.

* 2: i set up an account, and the username is user@domain.servername.com
Dovecot has created the default folders and files under the home directory of the "vmail" user that wiki.dovecot required.

I can login to the IMAP account via telnet.
But sendmail on the same server throws: "user unknown" when i send a mail to the user.

im sure i miss some step, but which?

Regards
 
Old 04-04-2013, 08:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Dovecot is in the standard RHN repo. just use that. Sourceforge? That's not a repo. There is NO NEED to install from source at all, and I'd suggest you don't.

Can you show us the dovecot config file? What have you actually done to set up the account?
 
Old 04-04-2013, 10:39 AM   #3
oso_togari
Member
 
Registered: Jan 2008
Distribution: SOLARIS 9, RHEL4
Posts: 39

Original Poster
Rep: Reputation: 0
hi

excuse me...i mean rpmforge :-)
I cant use RHEL repo at this time(no support right now), and the DVD(that can i use as rhel repo) is "hidden" in the server till i touch the bios. But i can't restart now.

anyway....you mean that maybe the best option is to uninstall the current dovecot and install it from the DVD repo, isn't?

So i have a extra question: what is the best way to uninstall the current dovecot?

Meanwhile i upload the dovecot.conf:

[root@argon03 media]# dovecot -n
# 2.1.15: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-274.el5PAE i686 Red Hat Enterprise Linux Server release 5.7 (Tikanga)
auth_verbose = yes
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
info_log_path = /var/log/dovecot-info.log
listen = 127.0.0.1
log_path = /var/log/dovecot.log
login_trusted_networks = 127.0.0.0
mail_location = maildir:~/Maildir
passdb {
args = /usr/local/etc/dovecot/passwd
driver = passwd-file
}
protocols = imap
ssl = no
userdb {
args = uid=vmail gid=vmail home=/home/vmail/%u
driver = static
}




regards
 
Old 04-04-2013, 11:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
is you don't have paid RHN support, you have no business using RHEL in the first place. I'd strongly recommend migrating it to CentOS instead. In the mean time you can easily get the dovecot EL5 RPM from a CentOS mirror instead.
 
Old 04-04-2013, 08:53 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
I cant use RHEL repo at this time(no support right now), and the DVD(that can i use as rhel repo) is "hidden" in the server till i touch the bios
Not quite sure what you mean here, but if the DVD is in the CD/DVD drive, then you should be able to mount it and create a local repo as seen here https://code.google.com/p/iredmail/w...Yum_Repository.
Been there, done that; works just fine.

As acid_kewpie says though, you should definitely pay for RHEL or switch to Centos. Running an unsupported/non-updated RHEL is a bad idea.
 
Old 04-05-2013, 02:08 AM   #6
oso_togari
Member
 
Registered: Jan 2008
Distribution: SOLARIS 9, RHEL4
Posts: 39

Original Poster
Rep: Reputation: 0
Hi

i know is bad idea, but the company can't afford right now any payment(only the basic ones), so i have to deal with that.

so, at this time i have an unsupported RHEL 5.7 with an unfinished set up of dovecot...so what i must do?

* fix the dvd, uninstall the current dovecot(whats the best way to do it?) and install it from local repo... or
* Finish the configuration of this installation

At this point, i prefer the second option.....then maybe i uninstall it and installing from repo.


so what i have done is:

· install from source
· create dovecot,dovenull and vmail users/groups
· create the /etc/pam.d/dovecot with:

auth required pam_unix.so
account@argon03.domain.com required pam_unix.so

· create the passwd file for dovecot account with the content:

account@argon03.domain.com:{PLAIN}password

· start dovecot with "dovecot" command

Thats all.... the i test the imap account with success, the folder of the user created under /home/vmail/ but
i can't send any local mail to the account...."user unknown"

kind regards

Last edited by oso_togari; 04-05-2013 at 02:13 AM.
 
Old 04-05-2013, 02:37 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Your dovecot seems fine - it is sendmail that is having the problem.
You need to tell it where to find your user dir's - or better yet configure it to pass the mail to the dovecot deliver process.
http://wiki.dovecot.org/LDA/Sendmail
 
  


Reply



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
Dovecot and postfix/spamassasin questions methodtwo *BSD 1 06-09-2011 06:00 AM
ssl over pop and imap in dovecot in rhel 5.3 birla.sunil Linux - Server 5 10-13-2010 11:33 AM
dovecot install to RHEL p kumar Linux - Newbie 3 10-16-2009 09:21 AM
mail server configuration using dovecot in rhel 4 karzon Linux - Newbie 2 03-16-2007 06:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration