Server refuses mail with 550 5.1.1 : Recipient address rejected: User unknown ...
Hello, everyone,
I'm having a problem whereby I'm able to send mail to a mailbox from several different email addresses and SMTP servers (gmail, RoadRunner broadband), but I'm unable to send mail to the same address from one particular account, the SMTP server for which runs on a mediaTemple (dv) 3.0 box with CentOS 5 Final. I've spent a full workday on the forums, trying to troubleshoot the issue, and I'm running out of ideas. The server on which I'm having the mail processing problem is a mediaTemple (ve) running Ubuntu 10.04 x64 (Linux 2.6.18-028stab070.7 #1 SMP Fri Oct 1 13:53:00 MSD 2010 x86_64 GNU/Linux), with ISPConfig 3. Here's how I setup the mail-related aspects of the Ubuntu box: Code:
apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d Code:
aptitude install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl (from this page onward) http://www.howtoforge.com/perfect-se...ispconfig-3-p4 (substituted the Dovecot-specific portions of this tutorial into the above steps) http://www.howtoforge.com/perfect-se...ispconfig-3-p3 I didn't make any changes (at least not directly; ISPConfig may have) to /etc/postfix/master.cf or /etc/postfix/main.cf. Here are the relevant parts of both files: /etc/postfix/master.cf Code:
dovecot unix - n n - - pipe Code:
myhostname = mydomain.com Apache Webserver BIND DNS Server Dovecot IMAP/POP3 Server Fetchmail Mail Retrieval MySQL Database Server Postfix Mail Server Read User Mail SSH Server Sendmail Mail Server SpamAssassin Mail Filter Webalizer Logfile Analysis Whenever I try to send mail from me@mydomain.com to me@myotherdomain.com (those aren't my real email addresses, obviously), the following events are logged: /var/log/syslog Code:
Nov 13 16:40:55 ve postfix/smtpd[11341]: NOQUEUE: reject: RCPT from myotherdomain.com[xxx.xxx.xxx.xxx]: 550 5.1.1 <me@mydomain.com>: Recipient address rejected: User unknown in local recipient table; from=<me@myotherdomain.com> to=<me@mydomain.com> proto=ESMTP helo=<myotherdomain.com> Code:
Nov 13 16:40:55 ve postfix/smtpd[11341]: NOQUEUE: reject: RCPT from myotherdomain.com[xxx.xxx.xxx.xxx]: 550 5.1.1 : Recipient address rejected: User unknown in local recipient table; from= to= proto=ESMTP helo= I have not changed the default amavis log location, although, there is no file at what I understand to be the default location, /var/log/amavis.log. I assume that amavis has yet to come into the picture at this juncture. Here's the response that I receive from myotherdomain.com, when mydomain.com refuses the delivery: Code:
Hi. This is the qmail-send program at myotherdomain.com. If I look at the MySQL tables that are referenced in the .cf files (within /etc/postfix/main.cf), the mailbox to which I am attempting to send mail from my other domain is indeed present. I've tried adding myotherdomain.com to every whitelist I can find, but nothing changes. SpamAssasin is turned-off for the domain and mailbox within ISPConfig. This doesn't seem like a DNS issue, does it? I believe that my DNS records are configured correctly: Code:
A *.mydomain.com xxx.xxx.xxx.xxx 0 I have tried sending to me@mail.mydomain.com, and I receive a failure message, too, but the reason is "Relay access denied". Any help would be deeply appreciated. This has been frustrating me for days. Thanks for your time and assistance! |
Did you tried to change line
Code:
mydestination = mydomain.com, localhost, localhost.localdomain Code:
mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain what have you in table users in your myslql, is user you want to send mail created at all on system ? hth |
Thank you for your timely response, sarajevo!
I tried your suggestion, but the change caused an error in the mail log: Code:
Nov 14 09:54:44 ve postfix[24492]: warning: unreasonable macro call nesting: "myhostname" Code:
Nov 10 18:37:49 ve postfix/trivial-rewrite[3151]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains I had read elsewhere that the above warning could be ignored, and that it was normal when a virtual mailbox domain is created with the same name as the server's hostname. Based on this experience, however, it seems that the warning cannot be ignored -- at least if the mail server is to function properly! I appear to be sorted here; thanks again! |
Thanks, i had the same problem and your solution was perfect form me.
|
Hi Guys,
I followed above instructions but still, the problem persists. Any advice? Regards |
finally i figured this out, in my case i sued this command: /usr/local/psa/bin/domain -u example.com -mail_service false
working fine now |
cant recive e-mails...
Hi there i have similar problem i added some vhosts to opendkim sending works but i cant revice emails. what do i need to change , please help ..
|
i like to set like there is an user in mysql database exp. test and i have 5 vhosts/domains like to do the emails come from all or selected domains ...
in roundcube i setuped aliases and sending wia them works perfectly.. |
All times are GMT -5. The time now is 03:46 PM. |