Topic: Problem with mail from CLI
==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: Latest
- Linux/BSD distribution name and version: CentOS 5.6
- Any related log? Log is helpful for troubleshooting.
====
I'm trying to use the cli command mail to send mail from my cron script to my main email. Normally this would work fine, but my main server domain's email is not hosted on the server, it's hosted on google apps. All other domains on the server are hosted there. So when I send an email using mail to an email at my main domain I get the error in the log file user doesn't exist. Shouldn't dovecot and postfix check the MX records before they check their local user store? How do I stop this and get it to use the MX records and send to Google? If I send from a PHP script it works just fine, but not from mail in CLI.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.