Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 19th September 2008, 12:16
almeister9 almeister9 is offline
Member
 
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, 'news@scribalpublishingmail.com.au' and 'test@scribalpublishingmail.com.au'.
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 news@scribalpublishingmail.com.au 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
Quote:
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/main.cf
Quote:
# See /usr/share/postfix/main.cf.dist 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 = smail.scribalpublishingmail.com.au
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = smail.scribalpublishingmail.com.au
mydestination = smail.scribalpublishingmail.com.au, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
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-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
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/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
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
to
myorigin = their fqdn

as I have done above but it has not changed anything
and below:
Quote:
root@smail:/home/alan# netstat -tap | grep mysql
tcp 0 0 localhost.localdo:mysql *:* LISTEN 4445/mysqld
getnameinfo failed
root@smail:/home/alan#
result of telnet localhost 25
Quote:
Connected to localhost.localdomain.
Escape character is '^]'.
220 smail.scribalpublishingmail.com.au 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.
Cheers

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

Bookmarks

Tags
domains, falko, postfix, squirrelmail, virtual

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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


All times are GMT +2. The time now is 00:31.


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