PDA

View Full Version : mail in var/spool/mail/ how do for read?


GioMBG
1st August 2011, 02:41
Hi ALL,
Centos 6 + sendmail + dovecot:
I send from my machine X using squirrelmail to a certain mail address out,
I receive, no spam... perfect so I reply and the email go to my machine X
I am sure that go to destination because SIMPLY is in /var/spool/email/USER on my machine X BUT the question:
I can't read the email :(:
- with squirrelmail on server machine X
- with my evolution in my home (note that I think that I successful log in with ssl and tls because if I use plain text is impossible)
suggestions?
thx
GioMBG

GioMBG
1st August 2011, 03:52
Hi ALL,
hope that can be user full for some newbie like me:
Centos 6 + sendmail + dovecot + Squirrelmail:
very simple to install the first three with Yum,
for squirrelmail is needed modify the repos by add:
epel.repo

rpm -Uvh http://bit.ly/q7kHBq
yum repolist
yum install yum-priorities

modify with priority=10 /etc/yum.repos.d/epel.repo:

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

priority=10


(I've safetly disable after install squirrel)

in sendmail is needed install sendmail.cf to MAKE compiled
yum install sendmail-cf
hack sendmail.mc
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
TO:
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

and after compile with sendmail.cf
/etc/mail/sendmail.cf
in dovecot is needed modify/DE-comment the 2th option/mail_location in:
/etc/dovecot/conf.d/10-mail.conf
FROM:
# mail_location = maildir:~/Maildir
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
# mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
TO:
# mail_location = maildir:~/Maildir
mail_location = mbox:~/mail:INBOX=/var/mail/%u
# mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n

remeber to set yours squirrelmail:
/usr/share/squirrelmail/config/conf.pl

thst's all
respect 2 howtoforge
Ciao
GioMBG