• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Could not send message to SMTP server

RoyM

New Pleskian
Hello everyone,

I'm struggling with a problem which I can't solve so I'm hoping that you can help me.

I have a brandnew VPS server, clean install openSUSE 11.1 together with Plesk 9.5.2.
But my mail is giving problems.

Sending from webmail doesn't work. I get the error:

Could not send message to SMTP server. Check you have access to send messages via the server and that all To/CC/BCC addresses are valid\nError: SMTP Server rejected email. Returned:550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table

Making an IMAP or POP connection also doesn't work, but sending from shell (telnet 25 ...) does work!

So am I missing something? I have already done some tests with my greylisting on/off, changed from postfix to qmail.

Hopefully you can give me a hand.

Thnx in advance!

Roy
 
btw: /usr/local/psa/var/log/maillog:

2010-10-14T07:00:02.427867+02:00 h1804268 postfix/smtpd[23840]: disconnect from unknown[127.0.0.1]
2010-10-14T07:00:02.436453+02:00 h1804268 postfix/error[23848]: 5786931344CF: to=<[email protected]>, relay=none, delay=0.08, delays=0.05/0.01/0/0.02, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
2010-10-14T07:00:02.443471+02:00 h1804268 postfix/cleanup[23822]: 6BFBD31344DA: message-id=<[email protected]>
2010-10-14T07:00:02.447806+02:00 h1804268 postfix/qmgr[6043]: 6BFBD31344DA: from=<>, size=2864, nrcpt=1 (queue active)
2010-10-14T07:00:02.448509+02:00 h1804268 postfix/bounce[23853]: 5786931344CF: sender non-delivery notification: 6BFBD31344DA
2010-10-14T07:00:02.448704+02:00 h1804268 postfix/qmgr[6043]: 5786931344CF: removed
2010-10-14T07:00:02.451689+02:00 h1804268 postfix/error[23848]: 6BFBD31344DA: to=<[email protected]>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
2010-10-14T07:00:02.452159+02:00 h1804268 postfix/qmgr[6043]: 6BFBD31344DA: removed
 
Re:

Hi Igor,

The output of command /usr/local/psa/admin/sbin/mchk --with-spam was:

/usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mail_spam_restore... ok
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_drweb_restore... ok
==> Checking for: mail_kav_restore... not exsists
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_grey_restore... ok

But with no luck. I tried to mail by webmail but the following error ocurred:

Could not send message to SMTP server. Check you have access to send messages via the server and that all To/CC/BCC addresses are valid\nError: SMTP Server rejected email. Returned:550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table

The log /var/log/mail says:

Oct 4 21:57:47 h1804268 sendmail[11772]: gethostbyaddr(127.0.0.2) failed: 1
Oct 4 21:57:47 h1804268 sendmail[11773]: starting daemon (8.14.3): SMTP+queueing@00:30:00
Oct 4 21:57:47 h1804268 sendmail-client[11778]: starting daemon (8.14.3): persistent-queueing@00:01:00
Oct 4 21:58:17 h1804268 sendmail[15641]: gethostbyaddr(127.0.0.2) failed: 1
Oct 4 21:58:17 h1804268 sendmail[15643]: starting daemon (8.14.3): SMTP+queueing@00:30:00
Oct 4 21:58:17 h1804268 sendmail-client[15648]: starting daemon (8.14.3): persistent-queueing@00:01:00

/usr/local/psa/var/log/maillog:

2010-10-14T16:15:02.132844+02:00 h1804268 postfix/smtpd[13955]: disconnect from unknown[127.0.0.1]
2010-10-14T16:15:02.136959+02:00 h1804268 postfix/error[13962]: 114473134057: to=<mailman@h1804268. demo.net>, relay=none, delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
2010-10-14T16:15:02.144009+02:00 h1804268 postfix/cleanup[13937]: 22E4C3134058: message-id=<20101014141502.22E4C3134058@h1804268. demo.net>
2010-10-14T16:15:02.150048+02:00 h1804268 postfix/qmgr[32491]: 22E4C3134058: from=<>, size=2864, nrcpt=1 (queue active)
2010-10-14T16:15:02.150598+02:00 h1804268 postfix/bounce[13964]: 114473134057: sender non-delivery notification: 22E4C3134058
2010-10-14T16:15:02.150780+02:00 h1804268 postfix/qmgr[32491]: 114473134057: removed
2010-10-14T16:15:02.155290+02:00 h1804268 postfix/error[13962]: 22E4C3134058: to=<mailman@h1804268. demo.net>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
2010-10-14T16:15:02.155757+02:00 h1804268 postfix/qmgr[32491]: 22E4C3134058: removed

I hope the logs are helpful !?

Tjeers!

Roy
 
Last edited:
SMTP Server rejected email. Returned:550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table

Check that this email exists in virtual mailbox table with something like:
# strings /var/spool/postfix/plesk/virtual.db|grep address.tlc

If it doesn't exists just add it with

# /opt/psa/admin/sbin/mailmng --add-mailname --domain-name=address.tlc --mailname=the.email
 
Check that this email exists in virtual mailbox table with something like:


If it doesn't exist just add it with


Hi IgorG

In my case, my all emails are already on the list but still, I can't send as received the same message
Cannot sent message via webmail: "User unknown in virtual alias table"

Any advice?
 
Highly appreciated your help on this matter.

I have followed the instructions from KB Odin: Cannot sent message via webmail: "User unknown in virtual alias table" however, I require your expertise on the last bit "If Postfix files are corrupted completely, or empty:"

To remove the records do I have to use all the exact commands to accomplish the result?
  1. cd /var/spool/postfix/plesk/
  2. for db_file in virtual virtual_domains ; do
  3. ls -1 --color=never /var/qmail/mailnames > /tmp/domains.txt
  4. hostname -f >> /tmp/domains.txt
  5. postmap -s /var/spool/postfix/plesk/$db_file > /tmp/${db_file}_temp
  6. grep -f /tmp/domains.txt /tmp/${db_file}_temp > /tmp/$db_file
  7. postmap /tmp/$db_file
  8. mv /tmp/$db_file.db /var/spool/postfix/plesk/
 
Hi digitalberg,

the provided resolution is ONE command:

Code:
for db_file in virtual virtual_domains ; do ls -1 --color=never /var/qmail/mailnames > /tmp/domains.txt hostname -f >> /tmp/domains.txt postmap -s /var/spool/postfix/plesk/$db_file > /tmp/${db_file}_temp grep -f /tmp/domains.txt /tmp/${db_file}_temp > /tmp/$db_file postmap /tmp/$db_file mv /tmp/$db_file.db /var/spool/postfix/plesk/ done

... as you might notice from the SINGLE "~#" ( which is used to tell you, that the command should be done over your command line ( logged in as user "root" ). It might be a bit irritating, that the command has been splitted into several lines.
 
Back
Top