View previous topic :: View next topic |
Author |
Message |
ahadley n00b

Joined: 08 Jan 2004 Posts: 45 Location: UK
|
Posted: Fri Nov 25, 2005 3:47 pm Post subject: postfix (rediculously simple) problem [solved] |
|
|
hi,
having set up the mailfilter system on a server i have it almost working... i get the following error:
Code: | Nov 25 15:27:52 [postfix/qmgr] warning: connect to transport smtp: Connection refused |
in the logs when an email comes, and hen i start postfix the following:
Code: | Nov 25 15:39:39 [postfix/qmgr] warning: connect to transport smtp: Connection refused |
I have read through the other posts and found no solutions (the most similar problem was solved by using Code: | postmap /etc/postfix/transport | but i am using a mysql db for this so this wont solve it i think).
main.cf:
Code: | postconf -n
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/usr/local/mailman/data/aliases, mysql:/etc/postfix/mysql-aliases.cf
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 2
empty_address_recipient = MAILER-DAEMON
home_mailbox = .maildir/
html_directory = no
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
local_transport = local
mail_owner = postfix
mailbox_command = /usr/bin/procmail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
mydomain = ahadley.vm.bytemark.com
myhostname = ahadley.vm.bytemark.co.uk
mynetworks = 80.68.89.37/24, 127.0.0.0/8 213.230.203.214/24 212.100.224.114/24
newaliases_path = /usr/bin/newaliases
owner_request_special = no
queue_directory = /var/spool/postfix
queue_minfree = 120000000
readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
recipient_delimiter = +
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_gid_maps = static:100
virtual_mailbox_base = /
virtual_mailbox_domains = ahadley.com, alexhadley.co.uk, ethicalplc.com, notedit.com, noticedit.com, kipey.com, rivertraders.co.uk, rivertraders.net
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_minimum_uid = 1000
virtual_transport = virtual
virtual_uid_maps = static:1001
|
master.cf:
Code: | smtp inet n - n - - smtpd -v
-o content_filter=smtp-amavis:[127.0.0.1]:10024
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
#smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#added by alex 25 nov 05
smtp-amavis unix - - n - 5 smtp -v
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#added by alex 25th Nov 05
127.0.0.1:10025 inet n - n - - smtpd -v
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
|
please ask for any other details you need.
much thanks in advance,
Alex _________________ Common sense is the collection of prejudices acquired by age eighteen.
Albert Einstein
Last edited by ahadley on Fri Nov 25, 2005 4:22 pm; edited 1 time in total |
|
Back to top |
|
 |
massctrl Apprentice


Joined: 19 Mar 2004 Posts: 156
|
Posted: Fri Nov 25, 2005 4:09 pm Post subject: |
|
|
The postmap command converts a textfile into a databaseformat so postfix can search it in a more efficient way.
Do you have local iptables/firewall running? If so turn it off and do your test again.
Do you rely on manually mapped transport routes like mail for domain.com must allways be sent to mailserver 123.123.123.123? |
|
Back to top |
|
 |
makoomba Bodhisattva


Joined: 03 Jun 2004 Posts: 1856
|
Posted: Fri Nov 25, 2005 4:16 pm Post subject: |
|
|
uncomment this line
Code: | #smtp unix - - n - - smtp |
_________________ When all else fails, read the instructions. |
|
Back to top |
|
 |
ahadley n00b

Joined: 08 Jan 2004 Posts: 45 Location: UK
|
Posted: Fri Nov 25, 2005 4:21 pm Post subject: |
|
|
woops... thanks for that... i'm going to go and dig a big hole to hide in now...
thanks for all your help - at least it was an easy one!
Alex  _________________ Common sense is the collection of prejudices acquired by age eighteen.
Albert Einstein |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|