Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st May 2008, 13:50
RdeWilde RdeWilde is offline
Junior Member
 
Join Date: May 2008
Posts: 17
Thanks: 11
Thanked 0 Times in 0 Posts
Question [postfix]550 ..: Recipient address rejected: User unknown in virtual mailbox table

I've been trying for hours and hours getting my postfix to work, but it just won't work.

Of the three scenario's, i can't get one to work:
- external mailserver (isp) to local mailserver (mine) WORKS
- local mailserver (mine) to local mailserver (mine) WORKS
- local mailserver (mine to external mailserver (isp) PROBLEM!

I get this error:
Code:
.. postfix/smtpd[16293]: NOQUEUE: reject: RCPT from *host*[*ip*]: 550 5.1.1 <some@external.isp>: Recipient address rejected: User unknown in virtual mailbox table; from=<info@sove.nl> to=<some@external.isp> proto=ESMTP helo=<dev>
It just doesn't seem to get that external.isp isn't my server, but it has to go external . The external.isp could be anything from hotmail, gmail to some little mailprovider.

My configs for as far as they'll be needed, i added to the bottom.


Hopefully someone can help me getting this up, becuase i've been spending much more hours than I would. Thanks in advance!!


Code:
MAIN.CF   POSTCONF -N:
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
local_recipient_maps = $virtual_mailbox_maps
mail_owner = postfix
mailbox_command =
mailbox_transport = virtual
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination =
myhostname = mail.sove.nl
mynetworks = host 87.249.107.0/24 127.0.0.0/8
mynetworks_style = host
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
proxy_interfaces = 87.249.107.11
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relayhost =
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = nonanonymous
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:12
virtual_mailbox_base = /var/www/client/
virtual_mailbox_domains = mysql:/etc/postfix/mysql_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox_maps.cf
virtual_minimum_uid = 8
virtual_transport = dovecot
virtual_uid_maps = static:8

MASTER.CF:
Code:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
submission inet n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
#       -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5

.. a lot more ..

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -d ${recipient}
Reply With Quote
Sponsored Links
  #2  
Old 1st June 2008, 11:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please check if your server is blacklisted: http://mxtoolbox.com/blacklists.aspx
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
RdeWilde (9th June 2008)
  #3  
Old 1st June 2008, 18:03
RdeWilde RdeWilde is offline
Junior Member
 
Join Date: May 2008
Posts: 17
Thanks: 11
Thanked 0 Times in 0 Posts
Default

All okay. Except for some timeouts, but that won't be the problem i guess:
Quote:
CSMA TIMEOUT 0 0
HILLI TIMEOUT Return codes were: ERROR, Reponse code=2 0 0
INFORMATIONWAVE TIMEOUT 0 0
NJABLDYNA TIMEOUT 0 0
RANGERSBL TIMEOUT 0 0
RRBL TIMEOUT 0 0
TQMCUBE TIMEOUT 0 0
Reply With Quote
  #4  
Old 2nd June 2008, 10:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I see that mydestination is empty in your main.cf. That could be the problem. Please change it and restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
RdeWilde (9th June 2008)
  #5  
Old 2nd June 2008, 13:30
RdeWilde RdeWilde is offline
Junior Member
 
Join Date: May 2008
Posts: 17
Thanks: 11
Thanked 0 Times in 0 Posts
Default

What should I change it to? I'm using multiple domain names, which are saved in a mysql database table (used to virtual_mailbox_domain).

Do I have to use a single domain for my host? Or use a SQL statement? It hasn't been empty all the time, i've tried different things. But in working configs I found it was mostly empty.

Please suggest what I could put in there (for example).
Reply With Quote
  #6  
Old 3rd June 2008, 10:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You must use a different hostname from what you've stored in the MySQL DB. What's the output of
Code:
hostname -f
? Is this hostname stored in the MySQL DB?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
RdeWilde (9th June 2008)
  #7  
Old 3rd June 2008, 10:50
RdeWilde RdeWilde is offline
Junior Member
 
Join Date: May 2008
Posts: 17
Thanks: 11
Thanked 0 Times in 0 Posts
Smile

This outputs dewildevds2.jronline.nl which is not hosted as a maildomain. But I'm connecting to the mailserver through the hosted domains itself. For example:
Quote:
mail.firstdomain.com
mail.seconddomain.com
Works for incoming at least. Outgoing can connect, but not sending as mentioned. Previous settings I've tried are:

Quote:
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$domain
None of them did work. Neither did this change (dewil...) Thanks for helping this far anyway..
Reply With Quote
  #8  
Old 4th June 2008, 19:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
.. postfix/smtpd[16293]: NOQUEUE: reject: RCPT from *host*[*ip*]: 550 5.1.1 <some@external.isp>: Recipient address rejected: User unknown in virtual mailbox table; from=<info@sove.nl> to=<some@external.isp> proto=ESMTP helo=<dev>
Are the host and IP address your own ones or the ones of the remote host?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
RdeWilde (9th June 2008)
  #9  
Old 4th June 2008, 19:29
RdeWilde RdeWilde is offline
Junior Member
 
Join Date: May 2008
Posts: 17
Thanks: 11
Thanked 0 Times in 0 Posts
Default

My client IP running the mailclient.
Reply With Quote
  #10  
Old 5th June 2008, 17:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Huh? So you're running a mail server on the client?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
RdeWilde (9th June 2008)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Recipient address rejected: User unknown in local recipent table. adrenalinic Installation/Configuration 15 25th April 2006 16:26
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 12:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.