LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-23-2012, 07:31 AM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 122

Rep: Reputation: 15
Thumbs down 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
 
Old 03-23-2012, 03:04 PM   #2
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 122

Original Poster
Rep: Reputation: 15
Postmap!!!! :d
 
  


Reply

Tags
postfix, solaris 10 x86


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix setup ntl rejects mail linuxmandrake Linux - Server 4 10-22-2007 07:24 AM
how to forward mail to postfix virtual user justkeny2k Linux - Networking 7 12-22-2006 12:43 AM
Postfix and LDAP - Virtual User Question mephitic Linux - Software 0 10-04-2005 09:27 AM
Postfix Virtual User Passwords? jdavidow Linux - Software 1 03-26-2005 10:26 AM
Adding virtual user for Postfix hct224 Linux - Newbie 0 01-22-2004 12:47 PM


All times are GMT -5. The time now is 01:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration