
16th August 2007, 20:57
|
|
Junior Member
|
|
Join Date: Apr 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Postfix: can't deliver mail
I have set up Postfix, MySQL, Courier etc etc... and everything looks good except that postfix can't deliver mail to local accounts
In webmin I get this status message in postfixes queue on an incoming mail:
Code:
connect to 127.0.0.1[127.0.0.1]: Connection refused
.
Pls help.
Thanks,
Darren
|

16th August 2007, 23:27
|
|
Member
|
|
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
|
|
Did you install any antispam/antivirus software like amavis, spamassassin and/or clamav ? If so, then it probably isn't running, or it isn't configured to allow mails from localhost.
Please give us some more info on the setup:
O.S. + version
output of main.cf
extra soft installed as av/spam ?
Thanks,
Thanis
|

17th August 2007, 12:14
|
|
Junior Member
|
|
Join Date: Apr 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Thanis
I followed the Postfix Virtual Domains/Users for Ubuntu Edgy How to here on howtoforge.com
I have Ubuntu 7.04 (Feisty)
Main.cf:
Code:
# 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
# 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:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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 = carterweb.za.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = carterweb.za.net, localhost, localhost.localdomain
relayhost = smtp.saix.net
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
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_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
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $vir$
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Thanks,
Darren Carter
|

17th August 2007, 17:11
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
What's the output of and
Code:
postconf -d | grep inet_interfaces
?
|

17th August 2007, 18:31
|
|
Junior Member
|
|
Join Date: Apr 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
netstat -tap
Code:
root@carterweb:~# 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:2208 *:* LISTEN 4893/hpiod
tcp 0 0 localhost:10024 *:* LISTEN 4838/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN 5595/master
tcp 0 0 *:mysql *:* LISTEN 7050/mysqld
tcp 0 0 *:www *:* LISTEN 6187/apache2
tcp 0 0 *:webmin *:* LISTEN 5930/perl
tcp 0 0 carterweb.za.net:domain *:* LISTEN 4793/named
tcp 0 0 localhost:domain *:* LISTEN 4793/named
tcp 0 0 localhost:ipp *:* LISTEN 4869/cupsd
tcp 0 0 *:smtp *:* LISTEN 5595/master
tcp 0 0 localhost:953 *:* LISTEN 4793/named
tcp 0 0 localhost:2207 *:* LISTEN 4896/python
tcp 0 0 carterweb.za.net:mysql dazz-net.local:4527 ESTABLISHED7050/mysqld
tcp6 0 0 *:imaps *:* LISTEN 5467/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 5508/couriertcpd
tcp6 0 0 localhost:8005 *:* LISTEN 9774/java
tcp6 0 0 *:8009 *:* LISTEN 9774/java
tcp6 0 0 *:pop3 *:* LISTEN 5483/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 5444/couriertcpd
tcp6 0 0 *:8180 *:* LISTEN 9774/java
tcp6 0 0 *:domain *:* LISTEN 4793/named
tcp6 0 0 *:ssh *:* LISTEN 5649/sshd
tcp6 0 0 ip6-localhost:953 *:* LISTEN 4793/named
tcp6 0 592 carterweb.za.net:ssh ::ffff:192.168.1.3:4287 ESTABLISHED7331/1
root@carterweb:~#
postconf -d | grep inet_interfaces:
Code:
root@carterweb:~# postconf -d | grep inet_interfaces
inet_interfaces = all
local_header_rewrite_clients = permit_inet_interfaces
root@carterweb:~#
Thanks,
Darren carter
|

18th August 2007, 11:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
The outputs look ok.
What's the output of
Code:
telnet localhost 25
and then ? Any errors in your mail log?
|

18th August 2007, 19:12
|
|
Junior Member
|
|
Join Date: Apr 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
mhm... it strangly just started working, I dunno what was wrong, but anyhoo...
Thanks
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 21:46.
|
|
Recent comments
15 hours 59 min ago
22 hours 40 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 12 hours ago
1 day 22 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 7 hours ago