moving mail to another server

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
roland_br
Posts: 55
Joined: 2006/06/09 09:38:21

moving mail to another server

Post by roland_br » 2015/11/21 18:25:32

I'm copying mail from an old server CentOS 5 to a new server CentOS 5. The old one uses fetchmail, dovecot, sendmail
Mail was stored at /var/spool/mail/~ and /home/roland/mail
I copied the following to the new server
/home/roland/ (my home dir)
/etc/dovecot.conf and modified:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
/etc/procmailrc and modified:
ORGMAIL=$HOME/mail/
DEFAULT=$HOME/mail/
DROPPRIVS=yes
:0
$DEFAULT
/etc/mail/sendmail.mc and modified:
LOCAL_DOMAIN and MASQUERADE_DOMAIN
(compiled it with make -C /etc/mail)
restart service sendmail and dovecot

On my portable I get all the emails which he find in ~/mail
BUT
when I send email to myself this email is stored in ~/Maildir
When I look at my mail box with webmin he always takes postfix as mailserver
I switch with system-switch-mail and then
webmin -> server -> sendmail -> mailboxes
He shows email from ~/Maildir

So...
My portable knows where to look for email (~/mail) but the mailserver thinks it is ~/Maildir

WHERE is this parameter hiding ?

Post Reply

Return to “CentOS 5 - Server Support”