If you’re using a third party, such as Google Apps, to host your email – you would need to tell Virtualmin that it isn’t handling email for that domain, someone else is.
To do that, go into Edit Virtual Server -> Enabled Features, and disable the “Mail for Domain” feature.
Thanks for your response, Actually when i created the virtual server i have disabled this features from scratch so the problem is not comming from this thing.
i had a look on the log “mail.log” located in /var/log
ksxxxxxx postfix/pickup[23337]: 1BFF725662: uid=33 from=
ksxxxxxx postfix/cleanup[28139]: 1BFF725662: message-id=20120223100003.1BFF725662@ksxxxxxx.kimsufi.com
ksxxxxxx postfix/qmgr[16388]: 1BFF725662: from=www-data@ksxxxxxx.kimsufi.com, size=2098, nrcpt=1 (queue active)
ksxxxxxx postfix/local[28141]: 1BFF725662: to=www-data@ksxxxxxx.kimsufi.com, orig_to=, relay=local, delay=0.13, delays=0.1/0/0/0.03, dsn=5.2.0, status=bounced (can’t create user output file. Command output: procmail: Unable to treat as directory “/var/www/Maildir” procmail: Error while writing to “/var/www/Maildir” procmail: Unable to treat as directory “/var/www/Maildir” procmail: Lock failure on “/var/www/Maildir.lock” procmail: Error while writing to “/var/www/Maildir” )
This error appears each 10 minutes on my server. Do you why www-data is trying to send an email ?
Hmm, it shouldn’t be trying to save email into /var/www.
Can you paste in the contents of your /etc/procmailrc file?
I don’t know why it’s emailing you every 10 minutes – but we can start by making sure that email is configured correctly, which would allow you to read the message it’s sending you. And then we can figure out what the problem is