PDA

View Full Version : IMAP doesn't work..as i followed the Perfect Setup for Fedora 4


asokaajay
21st November 2005, 05:25
Good day,

i'm currently setting up my own mail server. almost 80% of the instruction of the Perfect Setup for Fedora 4 works...but i got stuck on the apt-get install cyrus-sasl-gssapi and imap...where the update shows NO PACKAGE FOUND for these two item. And i also having problem starting up imap, pop3...where it shows no directory found. Kindly someone help me on this....plz...

falko
21st November 2005, 09:28
I quote from the tutorial:

Edit /etc/apt/sources.list. It should contain the following lines:

rpm http://ayo.freshrpms.net fedora/linux/4/i386 core updates freshrpms
rpm http://ayo.freshrpms.net fedora/linux/4/i386 tupdates
rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms

In the last line, rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms, the 1 is not an error or typo! This is the repository that has the imap package which we are going to install soon! So do not change these lines!

I guess your /etc/apt/sources.list is missing the last line. Put it in there, and run
apt-get update afterwards. Then you can install imap:
apt-get install imap

milas
22nd November 2005, 04:58
I can't find it either. I searched through the listing of freshrpms on the Fedora Core 1 entry manually too and cannot find any package with the words IMAP in it. Was it removed from the server?

till
22nd November 2005, 08:30
And you checked that this line is in your /etc/apt/sources.list:

rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms

(Yes, its a fedora 1 not fedora 4 repository!) and run apt-get update before you tried to install the package?

egomouse
22nd December 2005, 18:25
I'm having trouble installing imap.

Yes i have the last line in sources.list and when i do a apt-get update i get some 404 file not found.

And if you look here http://ftp.freshrpms.net/pub/fedora/linux/extras/

there is no 1 folder!!!!!!

brianclark
9th April 2006, 04:20
apt-get update worked for me and imap installed fine as well as the other packages I was missing initially :)

Brian

CraigMoore
28th May 2007, 18:12
I've been following the The The Perfect Setup - Fedora Core 4 - Page 4 (http://www.howtoforge.com/perfect_setup_fedora_core_4_p4), but I'm having trouble with the imap package.

I've read the above comments and tried to install imap as you instructed. My sources.list file reads:
# Add any local / 3rd party repositories here..
rpm http://ayo.freshrpms.net fedora/linux/4/i386 core updates freshrpms
rpm http://ayo.freshrpms.net fedora/linux/4/i386 tupdates
rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms

I ran:

apt-get update

After that I tried to install imap, and I get a 403 Forbidden Error as you can see:

[root@laptop ssl]# apt-get install imap
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
openssl097a (0.9.7a-3.1)
xinetd (2.3.13-6)
The following NEW packages will be installed:
imap (2002d-3)
openssl097a (0.9.7a-3.1)
xinetd (2.3.13-6)
0 upgraded, 3 newly installed, 0 removed and 265 not upgraded.
Need to get 1287kB/2210kB of archives.
After unpacking 4871kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://ayo.freshrpms.net fedora/linux/1/i386/core imap 1:2002d-3 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/1/i386/RPMS.core/imap-2002d-3.i386.rpm 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Any thoughts on how I can get this work? Otherwise, I'll have to run the other package called dovecot like you mention here (http://www.howtoforge.com/forums/showthread.php?t=2340&highlight=Fedora+Perfect+Setup+imap)? How will this change the commands, which are shown in the tutorial, if I do use dovecot:

chkconfig --levels 235 sendmail off
chkconfig --levels 235 postfix on
chkconfig --levels 235 saslauthd on
chkconfig imap on
chkconfig imaps on
chkconfig ipop3 on
chkconfig pop3s on
/etc/init.d/sendmail stop
/etc/init.d/postfix start
/etc/init.d/saslauthd start
/etc/init.d/xinetd restart

Thanks in advance for your help,
Craig

falko
29th May 2007, 14:26
Take a look at chapter 9 on http://www.howtoforge.com/perfect_setup_fedora_core_5_p5 . That should work for Fedora Core 4, too.

CraigMoore
29th May 2007, 20:41
I've gotten it working now, but I'm going to try and configure the e-mail now. I'll start a new post if I run into trouble. However, I've got a things I want to clear up before I get too far along.

I really want to configure the server to be a IMAP Mail server so I'm working toward that goal. From what I could tell from the set-up I carried out here (http://www.howtoforge.com/perfect_setup_fedora_core_4) and here (http://www.howtoforge.com/perfect_setup_fedora_core_5_p5). The server is currently configured to do POP3 only. I did a "netstat -tap" with the following output:


[root@laptop postfix]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:32769 *:* LISTEN 1734/rpc.statd
tcp 0 0 *:mysql *:* LISTEN 2176/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1716/portmap
tcp 0 0 *:81 *:* LISTEN 2515/ispconfig_http
tcp 0 0 laptop.server.com:domain *:* LISTEN 2638/named
tcp 0 0 192.168.1.101:domain *:* LISTEN 2638/named
tcp 0 0 192.168.0.100:domain *:* LISTEN 2638/named
tcp 0 0 localhost.localdomai:domain *:* LISTEN 2638/named
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2042/cupsd
tcp 0 0 localhost.localdomain:5335 *:* LISTEN 2024/mDNSResponder
tcp 0 0 *:smtp *:* LISTEN 7655/master
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 2638/named
tcp 0 0 *:imaps *:* LISTEN 3413/dovecot
tcp 0 0 *:pop3s *:* LISTEN 3413/dovecot
tcp 0 0 *:pop3 *:* LISTEN 3413/dovecot
tcp 0 0 *:imap *:* LISTEN 3413/dovecot
tcp 0 0 *:http *:* LISTEN 2538/httpd
tcp 0 0 *:ftp *:* LISTEN 2654/proftpd: (acce
tcp 0 0 *:ssh *:* LISTEN 2072/sshd
tcp 0 0 ::1:rndc *:* LISTEN 2638/named
tcp 0 0 *:https *:* LISTEN 2538/httpd
tcp 0 148 laptop.server.com:ssh ::ffff:192.168.1.2:1407 ESTABLISHED 3029/0


I see a listing for IMAP so I take it I will be able to run the server as an IMAP; however, I think there will be more configuring to do regarding dovecot? Any idea of a good source of information for this? There is what looks like a nice wiki here (http://wiki.dovecot.org/PrebuiltBinaries) however, it seems like I should be doing this through the ISPConfig interface and I haven't seen anything regarding how to do that?

Finally, I did a checked of the current levels for the list of processes I'm running, and I see that sendmail is running at level 4. Is this right? I thought sendmail was supposed to be off since postfix is the mail carrier? Here is the list of processes and the levels on which they run:


[root@laptop postfix]# chkconfig --list
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
NetworkManagerDispatcher 0:off 1:off 2:off 3:off 4:off 5:off 6:off
acpid 0:off 1:off 2:off 3:on 4:on 5:on 6:off
anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off
apmd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
apt 0:off 1:off 2:off 3:off 4:off 5:off 6:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
bluetooth 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cups-config-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
dc_client 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dc_server 0:off 1:off 2:off 3:off 4:off 5:off 6:off
diskdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dovecot 0:off 1:off 2:on 3:on 4:on 5:on 6:off
gpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
httpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
irda 0:off 1:off 2:off 3:off 4:off 5:off 6:off
isdn 0:off 1:off 2:on 3:on 4:on 5:on 6:off
kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off
mDNSResponder 0:off 1:off 2:off 3:on 4:on 5:on 6:off
mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off
mdmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off
mysqld 0:off 1:off 2:on 3:on 4:off 5:on 6:off
named 0:off 1:off 2:on 3:on 4:off 5:on 6:off
ndas 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nifd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ntpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
pcmcia 0:off 1:off 2:on 3:on 4:on 5:on 6:off
portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off
postfix 0:off 1:off 2:on 3:on 4:off 5:on 6:off
proftpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off
psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rhnsd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
saslauthd 0:off 1:off 2:on 3:on 4:off 5:on 6:off
sendmail 0:off 1:off 2:off 3:off 4:on 5:off 6:off
smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off
spamassassin 0:off 1:off 2:off 3:off 4:off 5:off 6:off
squid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
tux 0:off 1:off 2:off 3:off 4:off 5:off 6:off
vncserver 0:off 1:off 2:off 3:off 4:off 5:off 6:off
winbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
xfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
yum 0:off 1:off 2:off 3:off 4:off 5:off 6:off


From what you can see, are the levels appropriate for what I'm trying to do?

Thanks for you help,

Craig.

falko
30th May 2007, 17:06
The server is currently configured to do POP3 only.No, it's currently doing POP3, POP3S, IMAP, and IMAPS.

If you want to use IMAP only, you must configure IMAP. I think the configuration file is /etc/dovecot.conf.

grantdutoit
9th June 2007, 22:20
I also had problems with IMAP. I too have the source.list according to the Perfect Setup FC4. I then read this thread to use DOVECOT but it did not work. It gives me errors. any advice on this would be great.

It seems it may be that the original feeds are not working or existing as I get problems with apt-get php install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc.

It gives me this error:

[root@localhost ssl]# apt-get install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
Reading Package Lists... Done
Building Dependency Tree... Done
perl-libwww-perl is already the newest version.
The following extra packages will be installed:
libc-client (2002e-17)
libwmf (0.2.8.3-8.2)
libxml2-python (2.6.20-1.FC4)
The following packages will be upgraded
curl (7.13.1-3 => 7.13.1-5.fc4)
curl-devel (7.13.1-3 => 7.13.1-5.fc4)
libxml2 (2.6.19-1 => 2.6.20-1.FC4)
libxml2-devel (2.6.19-1 => 2.6.20-1.FC4)
libxml2-python (2.6.19-1 => 2.6.20-1.FC4)
php (5.0.4-10 => 5.0.5-2.2)
php-ldap (5.0.4-10 => 5.0.5-2.2)
php-mysql (5.0.4-10 => 5.0.5-2.2)
php-pear (5.0.4-10 => 5.0.5-2.2)
The following NEW packages will be installed:
ImageMagick (6.2.2.0-3.fc4.2)
libc-client (2002e-17)
libwmf (0.2.8.3-8.2)
php-devel (5.0.5-2.2)
php-gd (5.0.5-2.2)
php-imap (5.0.5-2.2)
php-odbc (5.0.5-2.2)
php-xml (5.0.5-2.2)
php-xmlrpc (5.0.5-2.2)
9 upgraded, 9 newly installed, 0 removed and 249 not upgraded.
Need to get 11.3MB of archives.
After unpacking 12.7MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://ayo.freshrpms.net fedora/linux/4/i386/updates libxml2-python 2.6.20-1.FC4
403 Forbidden
Get:1 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ libxml2-python 2.6.20-1.FC4 [401kB]
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-pear 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-mysql 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-ldap 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-devel 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-gd 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-imap 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-odbc 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-xml 5.0.5-2.2
403 Forbidden
Err http://ayo.freshrpms.net fedora/linux/4/i386/tupdates php-xmlrpc 5.0.5-2.2
403 Forbidden
Get:2 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ libxml2-devel 2.6.20-1.FC4 [1844kB]
Get:3 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ libxml2 2.6.20-1.FC4 [727kB]
Get:4 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ libwmf 0.2.8.3-8.2 [830kB]
Get:5 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ ImageMagick 6.2.2.0-3.fc4.2 [2817kB]
Get:6 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ curl-devel 7.13.1-5.fc4 [271kB]
Get:7 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ curl 7.13.1-5.fc4 [269kB]
Get:8 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ libc-client 2002e-17 [490kB]
Fetched 7650kB in 26m23s (4832B/s)
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-pear-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-mysql-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-ldap-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-devel-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-gd-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-imap-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-odbc-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-xml-5.0.5-2.2.i386.rpm 403 Forbidden
Failed to fetch http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.tupdates/php-xmlrpc-5.0.5-2.2.i386.rpm 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Is there anything else I can do to get it to work with the Perfect Setup FC4?

Can I use yum install? If so do I carry on installing afterwards the same as at present?

falko
10th June 2007, 14:57
You can try yum install, but I don't know if you'll get other results. FC4 is already quite old, so I guess that some repositories have been removed.