View Single Post
Old 19th September 2008, 13:16
almeister9 almeister9 is offline
Join Date: Sep 2008
Posts: 36
Thanks: 6
Thanked 3 Times in 3 Posts
Question getnameinfo failed Postfix Virt domains - falko

Hi all.
I have installed postfix using virtual domains on a fresh ubuntu install using falko great howto: Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS)
All tests appear to reply with correct responses as per the howto. I can get into database using phpmyadmin. I have setup two user accounts this way, '' and ''.
using mailx I have sent each a welcome email.
I have registered the domain name and arranged DNS hosting. they say they can see the mail server. I have forwarded the required ports on my router.
I have sent an email to from two seperate external email accounts and neither of them have bounced.

I can browse to suirrelmail across my network using the ipaddress/squirrelmail/ but it will not let me sign in to either of the accounts that I setup.

Then I noticed that the result of
netstat -tap
root@smail:/home/alan# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:10024 *:* LISTEN 4371/amavisd (maste
tcp 0 0 localhost.localdo:10025 *:* LISTEN 4992/master
tcp 0 0 localhost.localdo:mysql *:* LISTEN 4445/mysqld
tcp 0 0 *:www *:* LISTEN 5098/apache2
tcp 0 0 *:smtp *:* LISTEN 4992/master
tcp6 0 0 [::]:imaps [::]:* LISTEN 4888/couriertcpd
tcp6 0 0 [::]:pop3s [::]:* LISTEN 4927/couriertcpd
tcp6 0 0 [::]:pop3 [::]:* LISTEN 4907/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 4868/couriertcpd
tcp6 0 0 [::]:ssh [::]:* LISTEN 4336/sshd
getnameinfo failed
tcp6 0 0 smail.scribalpublis:ssh [UNKNOWN]:3018 ESTABLISHED 5126/sshd: alan [pr
on the second last line it says: getnameinfo failed

here is my postfix info

vi /etc/postfix/
# See /usr/share/postfix/ for a commented, more complete version

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin =
mydestination =, localhost, localhost.localdomain
relayhost =
mynetworks =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/
virtual_mailbox_maps = proxy:mysql:/etc/postfix/
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
I noticed in another thread that falko advised someone to change

myorigin = /etc/mailname
myorigin = their fqdn

as I have done above but it has not changed anything
and below:
root@smail:/home/alan# netstat -tap | grep mysql
tcp 0 0 localhost.localdo:mysql *:* LISTEN 4445/mysqld
getnameinfo failed
result of telnet localhost 25
Connected to localhost.localdomain.
Escape character is '^]'.
220 ESMTP Postfix (Ubuntu)
does anyone have anyideas where I should look. Im sure there are no typos as I copy and pasted everything in (being very careful about extra spaces as many have warned.)

Any help would be greatly appreciated.

Last edited by almeister9; 19th September 2008 at 13:19. Reason: additional info
Reply With Quote
Sponsored Links