Hi,
A mail sent from myaccount@yahoo.com to mail@myvirtualdomain.org bounces.
Sendmail works fine for my primary domain (myprimarydomain.org). I can send and receive emails from internal and external hosts for this. It's the virtual domain that bounces.
Logged in as root - I've created user 'mail' on myprimarydomain.org.
My MX record entry for myvirtual domain:
and my Apache virtual host configuration:
/usr/local/etc/apache22/extra/httpd-vhosts.conf
Is there a quick fix, i.e. which file(s) do I edit?
Are any of these the likely candidates?
/etc/mail/local-host-names
/etc/mail/aliases
/etc/mail/access
If so, can you provide an example? It would really help before I have to wade through loads of stuff sometimes unrelated to get to an answer.
A mail sent from myaccount@yahoo.com to mail@myvirtualdomain.org bounces.
tail -f /var/mail/maillog
Code:
May 11 10:26:42 web sm-mta[27492]: r4BEQg40027492: ruleset=check_rcpt, arg1=<mail@myvirtualdomain.org>, relay=nm25.bullet.mail.bf1.yahoo.com [98.139.212.184], reject=550 5.7.1 <mail@myvirtualdomain.org>... Relaying denied
May 11 10:26:42 web sm-mta[27492]: r4BEQg40027492: from=<myaccount@yahoo.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=IPv4, relay=nm25.bullet.mail.bf1.yahoo.com [98.139.212.184]
Sendmail works fine for my primary domain (myprimarydomain.org). I can send and receive emails from internal and external hosts for this. It's the virtual domain that bounces.
Logged in as root - I've created user 'mail' on myprimarydomain.org.
My MX record entry for myvirtual domain:
Code:
Name Content Preference TTL
myvirtualdomain.org mail.myvirtualdomain.org 10 3600
and my Apache virtual host configuration:
/usr/local/etc/apache22/extra/httpd-vhosts.conf
Code:
<VirtualHost *:80>
ServerAdmin webmaster@myprimarydomain.org
DocumentRoot "/var/www/myprimarydomain"
ServerName myprimarydomain.org
ServerAlias www.myprimarydomain.org
ErrorLog "/var/log/myprimarydomain.org-error_log"
CustomLog "/var/log/myprimarydomain.org-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin andy@myvirtualdomain.org
DocumentRoot "/var/www/myvirtualdomain"
ServerName myvirtualdomain.org
ServerAlias www.myvirtualdomain.org
ErrorLog "/var/log/myvirtualdomain.org-error_log"
CustomLog "/var/log/myvirtualdomain.org-access_log" common
</VirtualHost>
Is there a quick fix, i.e. which file(s) do I edit?
Are any of these the likely candidates?
/etc/mail/local-host-names
/etc/mail/aliases
/etc/mail/access
If so, can you provide an example? It would really help before I have to wade through loads of stuff sometimes unrelated to get to an answer.