-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Of course Dmitri

Here you go. I was actually trying to resolve this for an automated
kickstart process anyway. The details specific to dovecot are in the middle.

# Connect server to IPA domain (ensure DNS is working correctly
otherwise this step will fail)
ipa-client-install -U -p admin -w mysecretpassword

# install postfix if necessary (installed by default in rhel6)
yum -y install postfix

# set postfix to start on boot
chkconfig postfix on

# configure postfix with hostname, domain and origin details
sed -i 's/#myhostname = host.domain.tld/myhostname =
servername.example.com/g' /etc/postfix/main.cf
sed -i 's/#mydomain = domain.tld/mydomain = example.com/g'
/etc/postfix/main.cf
sed -i 's/#myorigin = $mydomain/myorigin = $mydomain/g' /etc/postfix/main.cf

# configure postfix to listen on all interfaces
sed -i 's/#inet_interfaces = all/inet_interfaces = all/g'
/etc/postfix/main.cf
sed -i 's/inet_interfaces = localhost/#inet_interfaces = localhost/g'
/etc/postfix/main.cf

# apply postfix changes
service postfix restart

# Install dovecot
yum -y install dovecot

# set dovecot to start on boot
chkconfig dovecot on

# set dovecot to listen on imap and imaps only
sed -i 's/#protocols = imap pop3 lmtp/protocols = imap imaps/g'
/etc/dovecot/dovecot.conf

# point dovecot to required mailbox directory (This is the section that
was previously failing)
echo "mail_location = mbox:~/mail:INBOX=/var/mail/%u" >>
/etc/dovecot/dovecot.conf

# reload dovecot to apply changes
service dovecot restart

# Apply working IPtables
cat > /etc/sysconfig/iptables << EOF
# Generated by iptables-save v1.4.7 on Tue Jan 10 12:17:41 2012
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [29:4596]
- - -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
- - -A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
- - -A INPUT -p tcp -m tcp --dport 993 -j ACCEPT
- - -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
- - -A INPUT -p icmp -j ACCEPT
- - -A INPUT -i lo -j ACCEPT
- - -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
- - -A INPUT -j REJECT --reject-with icmp-host-prohibited
- - -A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Tue Jan 10 12:17:41 2012
EOF

With the above details, I am able to replicate a 100% working IPA
authenticated mail server, allowing IPA users to retrieve mail via
imap/imaps.

I hope this helps.


Dale



On 01/30/2012 01:46 PM, Dmitri Pal wrote:

- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPJshWAAoJEAJsWS61tB+qN48P/RR7qGHnLAmfRT4dWm8b/fHp
C4oC/PtYmlw4CXxUh2ILfnnMTuGAD9sJMWHC0NGqdvKF9j/+ahcdaDg1KJmZ2JxH
C4OQKsBj5sBPcicJQIBVUzU77VbZR5ZVXidc1ixLaLETXnz48OhQy9SYu8IbuxIE
V1LJKRltJQ54CthD7xExkofiuxDQr++4IMF8WSMtApDexemrGiQtP/bfmVn2oszN
xypkaFyNk8n4oUznd8QncSo2PukxVL1Is3q+hnWwyMsQrIP0xlhVbF3YfeLmTMNv
yHh41ehS2GwmXJguYAe/dnpxHkxqXzmGBjN3lYxekfFfeUlfrxPZCVC/S9J9lrwX
rgqZFiqKdrBFINmwfqeN2MAzLggcc7sxK5cwBv9dw1wUeJxhm0junFEymrYXER3s
+Ps4UlJmH4Hts0bDomQDZ3d7Cxf2V8JtXm1ux4HkEkiVA1cUkuvvqkmcEie1XhAH
nNC7tVnJg3xYm5lTvC6WV9R9lxOWq+w4O1saJfjkqpNaqB/shoZCMv+JOQGPcaKm
SCsbOrMtUITq4jjDo84I/LLaZg3LF91aPZSfs9lJIECh3GV1+rG70X3DtjWQ9ucq
vlKG4GHRvdcTzCsb9/HOCM3aFsLOt5eb3/WQBvSWZ860xNDS6Gcd92OLkW8zainu
idEItJm/ii0j+wwW6aiT
=NvTn
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPJshlAAoJEAJsWS61tB+qcQ4P/0E6l25FfCuMk1RQdbqTf0Ys
MYjhkNGPl8hJrO+wAFE4+Lp1OIMVeH/r489EMVBvnbzsaT1tPPsVsLzsNC8Nt+am
uVsgdc1icYmy1NG0Sj9U70whSLksAKL9zT0ijufgDFT0J59qLCgTmc+uW2cI23Z3
6tqx5NiJ3zYlc1Ckm7biu4wwAk/jaPFBPuONEDAuxgBgsaDCNg9xacqauFbEe4Nb
YqTA9UnayeJ6Elrdea3ouKCqjztyFPkcaMxj+JTdBrLbSjXdzkF08KtuZETaEZ6g
Gq2QhNC3REkY1xfo5MMCKbhRym/uFW8txmh8saTABRIWcPoqndKOtpe+LB04Ui4A
qG9KdfCwAbJHIYYe/OpOVM01weMvwz92U7oZlfxDXPl3rq0Mr0uaijtZRMZjCCdI
QPyB+DZV76J2o9+YGWH5B+pZWE99BJPg25B9dv9uu92Kp6TTi8B2v2vetMytgeoQ
lzocLTfWF1E3oK95SmuvErvfOYwwDLeHN9qwiLBusbT5v5xpWijbvwBCoHDo+LqZ
lEQl2QreP97tsV58JHqbt6EyzdYRWQKeQcJhDo7W5TSAejs+dKdeo9i+8Ud6c8HD
DtzQ4iIQ6vferd856WLheLe0Sv+GE2+IQ1YG5avelxmx+KaRkf+WdYWbslNxnoIr
CkN/3WFB2nxPogrSYGGN
=GcOl
-----END PGP SIGNATURE-----

Attachment: 0xB5B41FAA.asc
Description: application/pgp-keys

Attachment: 0xB5B41FAA.asc.sig
Description: PGP signature

Attachment: 0xB5B41FAA.asc.sig
Description: PGP signature

Attachment: 0xB5B41FAA.asc.sig.sig
Description: PGP signature

_______________________________________________
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Reply via email to