Hello, I am currently configuring Virtualmin on a VPS to host a few of my own websites, so far with a lot of google use everything seems to be going smoothly except for sending emails.
Most emails are sending fine from roundcube, thunderbird and the android email app except one specific email address (that I know of, I imagine there are more) which repeatedly returns the following error:
As I don't thing my sister would want me to publicly advertise her email address I have replaced it with: 'some@email.address' and my own email address has been replaced with 'my@email.address'
SMTP Error (550): Failed to add recipient "some@email.address" (5.1.1 <some@email.address>: Recipient address rejected: User unknown in virtual alias table).
Postconfig -n returns the following
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = server.valentms.com, localhost.valentms.com, valentms.com, localhost, webserver, localhost.localdomain
myhostname = server.valentms.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
sender_bcc_maps = hash:/etc/postfix/bcc
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
hostname -f returns
localhost.localdomain
The last few sections of mail.log look like this
Jan 13 01:52:32 webserver dovecot: IMAP(email.username): Disconnected: Logged out bytes=44/532
Jan 13 01:52:47 webserver postfix/smtpd[12625]: connect from localhost.localdomain[127.0.0.1]
Jan 13 01:52:47 webserver postfix/smtpd[12625]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <some@email.address>: Recipient address rejected: User unknown in virtual alias table; from=<my@email.address> to=<some@email.address> proto=ESMTP helo=<valentms.com>
Jan 13 01:52:47 webserver postfix/smtpd[12625]: disconnect from localhost.localdomain[127.0.0.1]
Jan 13 01:55:19 webserver postfix/smtpd[12662]: connect from localhost.localdomain[127.0.0.1]
Jan 13 01:55:20 webserver postfix/smtpd[12662]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <some@email.address>: Recipient address rejected: User unknown in virtual alias table; from=<my@email.address> to=<some@email.address> proto=ESMTP helo=<valentms.com>
Jan 13 01:55:20 webserver postfix/smtpd[12662]: disconnect from localhost.localdomain[127.0.0.1]
So far this is the only email address I am having issues with, although I can send to it from my other accounts (on a cpanel server and hotmail etc...). From the email account on the virtualmin VPS I can send emails to other email addresses on the same server, ones on the cpanel server and hotmail etc...
I have spend a fair amount of time searching google and the forums attempting different solutions but as of yet none have worked for me.
Any help would be much appreciated.
Regards Jim
Jim,
The 550 error means that mailbox that you are attempting to connect to doesn't exist. That is there is no user found on the server.
-Peter
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Interesting, I have double checked the email address including copying and pasting from previous sent emails on my other accounts, I have also tried replying to emails sent to me from that address.
Perhaps my sister has found a way to block me :)
Jim
Ok, I think things have gone wrong somewhere as it is now returning the same error when attempting to send emails to other accounts that I use, the email addresses are definitely correct and working so the issue must be on the VPS, be it Debian, Postfix or Virtualmin.
I might have to dig out the backup I made the other day.
Also the email addresses I am having issues are on different servers including a cPanel hosting account, googlemail and hotmail.
Any further suggestions?
Hi,
If you don't mind paying a few dollars (no more than $80) I can take a peak at your configuration across at least the Virtualmin device. See if there's anything I can detect, then assist you in fixing things.
My rule is simple, no fix, no cost.
If you'd like to discuss, and/or get started please email: pknowles@tpnsolutions.com
-Peter
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Hi Peter,
Thank you for the offer, unfortunately I am on a very limited budget for this one and intend to learn along the way.
Suggestions and help on the forums would be much appreciated though.
Jim
Jim,
Drop me a line, and let's setup a screen sharing session. I feeling up for the challenge, on the house :-) Worse case, we don't figure anything out, best case, everything works and you're back in business.
*** If we solve the problem, be sure to share the resolution with the forums. ***
-Peter
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Hello Peter (and anybody else reading this),
I discovered the source of the problem which turned out to be something very simple but not immediately obvious.
When I purchased the VPS account I was allocated 2 IP's (due to SSL certs) which were randomly picked form the pool of unused IP's.
It turned out that the IP's had been used by a spamming website last year and as such were blacklisted in quite a few listings. I contacted the VPS supplier and they looked into it and issued me with 2 new IP's and all is working fine now!
So after all that frustration it turned out that nothing was wrong with Virtualmin, Postfix or any of the email accounts I was sending from and too.
If you're having this issue, save some time trying to work out what's going on and check your IP's with a website like http://mxtoolbox.com/
Thank you for your suggestions. Jim
Jim,
Glad you figured out the issue :-)
-Peter
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Thank you, hopefully it will be smooth sailing from here on.