LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   postfix rejects virtual user (http://www.linuxquestions.org/questions/solaris-opensolaris-20/postfix-rejects-virtual-user-936027/)

bluethundr 03-23-2012 08:31 AM

postfix rejects virtual user
 
Hello SolarisQ!

After adding a new virtual user called "request" to the virtual conf
file the user is rejected by the postfix server when you try to perform a telnet SMTP test:

Code:

[sysmail01:/data/home/dude] root% telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail01.example.com ESMTP Postfix
HELO mail
250 mail01.example.com
MAIL FROM: <ben.dude@example.com>
250 2.1.0 Ok
RCPT TO: <request@example.com>
550 5.1.1 <request@example.com>: Recipient address rejected: User
unknown in virtual alias table


This is how virtual_maps is set in the main configuration file:

Code:

[sysmail01:/data/home/dude] root% grep virtual /etc/postfix/main.cf
virtual_maps = dbm:/etc/postfix/virtual

This is how the "request" user entry looks in the postfix virtual conf file:

Code:

[sysmail01:/data/home/dude] root% grep request /etc/postfix/virtual
#        owner_request_special
#              Give special treatment to owner-xxx and xxx-request
request@example.com      request

Postfix has been restarted after making the change to the virtual conf file. I'm not sure if 'newaliases' pertains to the virtual file (as well as the aliases file), but I ran that command as well just to be safe.

Here's the full postfix conf -n output:

Code:

[sysmail01:/data/home/dude] root% postconf -n
anvil_rate_bene_unit = 60s
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_command = /opt/csw/bin/procmail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/man
milter_default_action = accept
mydomain = example.com
myhostname = mail01.example.com
mynetworks = 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 127.0.0.0/8,
66.227.109.123, 8.12.35.199, 66.192.34.62, 208.39.164.225,
208.39.164.226, 208.39.164.227, 208.39.164.228, 209.102.201.253
newaliases_path = /usr/bin/newaliases
proxy_interfaces = 63.240.22.35
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/lib/sendmail
setgid_group = postdrop
smtpd_client_connection_count_limit = 50
smtpd_client_connection_rate_limit = 100
smtpd_client_event_limit_exceptions =
${smtpd_client_connection_limit_exceptions:$mynetworks}
smtpd_client_message_rate_limit = 100
smtpd_client_recipient_rate_limit = 0
smtpd_client_restrictions = permit_mynetworks, reject_rbl_client
sbl-xbl.spamhaus.org
smtpd_milters = unix:/var/run/clamav/clamav-milter
unknown_local_recipient_reject_code = 550

The Maildir has been created in the home directory:

Code:

[sysmail01:/data/home/dude] root% ls -l /export/home/request/Maildir/
total 21
drwxr-xr-x  2 root    root          7 Mar 21 16:58 cur
-rw-r--r--  1 root    root      17408 Mar 21 16:58 dovecot.index.cache
-rw-r--r--  1 root    root        1004 Mar 21 16:58 dovecot.index.log
-rw-r--r--  1 root    root        376 Mar 21 16:58 dovecot-uidlist
-rw-------  1 root    root          8 Mar 21 16:58 dovecot-uidvalidity
-rw-------  1 root    root          0 Mar 21 16:58
dovecot-uidvalidity.4f638025
drwxr-xr-x  2 root    root          5 Mar 21 16:58 new
-rw-------  1 root    root        1239 Mar 21 16:58 proclog
drwxr-xr-x  2 root    root          2 Mar 21 16:58 tmp

This is a solaris host.

Code:

[sysmail01:/data/home/dude] root% uname -a
SunOS sysmail01 5.10 Generic_141415-07 i86pc i386 i86pc

I'm not sure what I'm missing here. I'd appreciate any advice you may have in adding this user account to the postfix system.

Thank you

bluethundr 03-23-2012 04:04 PM

Postmap!!!! :d


All times are GMT -5. The time now is 04:09 AM.