Results 1 to 4 of 4
Hello everybody!
I've installed a server mail based on : Postfix, LDAP, Courier, in Debian Sarge 3.1. Everything seems well configured, (I've executed postmap to check that postfix runs with ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-21-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 4
[postfix] problem with sending mail
Hello everybody!
I've installed a server mail based on : Postfix, LDAP, Courier, in Debian Sarge 3.1. Everything seems well configured, (I've executed postmap to check that postfix runs with LDAP, and courierauthtest to check that POP3 and IMAP are opérational, all is ok!), I've tried to configure antivirus and spamassassin to ...
This is the problem : when I try to send mail, it fails, and I find something like this in the log :
Sending to a local user:
Apr 20 05:35:34 localhost postfix/qmgr[16377]: 0C85020758B: from=<root@univ-antsiranana.mg>, size=335, nrcpt=1 (queue active)
Apr 20 05:35:34 localhost postfix/smtp[16807]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Apr 20 05:35:34 localhost postfix/smtp[16807]: 0C85020758B: to=<test@univ-antsiranana.mg>, relay=none, delay=0, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Apr 20 05:36:20 localhost postfix/qmgr[16377]: warning: connect to transport amavis : No such file or directory
Sending over yahoo.fr:
Apr 20 05:07:20 localhost postfix/qmgr[16377]: 53E69207541: from=<root@univ-antsiranana.mg>, size=385, nrcpt=2 (queue active)
Apr 20 05:07:20 localhost postfix/qmgr[16377]: warning: connect to transport amavis : No such file or directory
Apr 20 05:07:20 localhost postfix/qmgr[16377]: C203F207584: from=<root@univ-antsiranana.mg>, size=329, nrcpt=1 (queue active)
Apr 20 05:07:21 localhost postfix/qmgr[16377]: 03906207579: from=<root@univ-antsiranana.mg>, size=328, nrcpt=1 (queue active)
Apr 20 05:07:24 localhost postfix/smtp[16380]: connect to a.mx.mail.yahoo.com[209.191.118.103]: Connection refused (port 25)
Apr 20 05:07:36 localhost postfix/smtp[16380]: C203F207584: host c.mx.mail.yahoo.com[216.39.53.2] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10]
Apr 20 05:07:41 localhost postfix/smtp[16381]: 03906207579: host d.mx.mail.yahoo.com[66.196.82.7] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10]
Apr 20 05:07:57 localhost postfix/smtp[16381]: 03906207579: to=<xxxx@yahoo.fr>, relay=f.mx.mail.yahoo.com[68.142.202.247], delay=45270, status=deferred (host f.mx.mail.yahoo.com[68.142.202.247] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10])
Apr 20 05:08:20 localhost postfix/qmgr[16377]: warning: connect to transport amavis : No such file or directory
#postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
home_mailbox = Maildir/
inet_interfaces = all
luser_relay =
mailbox_size_limit = 0
mydestination = firewall.univ-antsiranana.mg, localhost.univ-antsiranana.mg, localhost
myhostname = firewall.univ-antsiranana.mg
mynetworks = 127.0.0.O/8 192.168.0.O/24
myorigin = univ-antsiranana.mg
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_CAfile = /etc/postfix/democa/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/proxy-cert.pem
smtpd_tls_key_file = /etc/postfix/proxy-key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
virtual_gid_maps = static:1006
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_minimum_uid = 100
virtual_uid_maps = static:1006
# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
ACCEPT igmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:netbios-ssn
ACCEPT udp -- anywhere anywhere udp dpt:netbios-ssn
ACCEPT udp -- anywhere SAP.MCAST.NET udp dpt:9875
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
At last, this is my master.cf contents :
smtp inet n - n - - smtpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-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,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
Can you help me please? I really need your help.
Thanks.
- 04-21-2008 #2
I think this is the problem, not exactly a postfix problem
some mail servers are picky about who they let talk to them. for example, if you don't have a rDNS or a valid ptr, some email servers won't talk to you, like yahoo. and you don't have a valid ptr, Ip Tools, DNS tools, internet tools, WHOIS, traceroute, ping, domain name tools . for testing you could try gmail, they are a little more lax in that area, but you will want to get it fixed.Code:Apr 20 05:07:36 localhost postfix/smtp[16380]: C203F207584: host c.mx.mail.yahoo.com[216.39.53.2] refused to talk to me: 553 Mail from 196.192.41.137 not allowed - [10]
This is the only time I ever suggest anything aol
, but they have some very good postmaster info and tools and it definitly helped me. Postmaster.Info : Troubleshooting E-mail Delivery
hope it helps
- 04-22-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 4
Thank you for your answers.
I've tried testing with gmail, but :
Apr 21 21:51:15 localhost postfix/qmgr[3801]: warning: connect to transport amavis : No such file or directory
Apr 21 21:51:31 localhost postfix/pickup[16596]: 58ADB207571: uid=0 from=<root>
Apr 21 21:51:31 localhost postfix/cleanup[17500]: 58ADB207571: message-id=<20080421185131.58ADB207571@firewall.univ-antsiranana.mg>
Apr 21 21:51:31 localhost postfix/qmgr[3801]: 58ADB207571: from=<root@univ-antsiranana.mg>, size=350, nrcpt=1 (queue active)
Apr 21 21:51:31 localhost postfix/smtp[17502]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Apr 21 21:51:31 localhost postfix/smtp[17502]: 58ADB207571: to=<xxxx@gmail.com>, relay=none, delay=0, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Therefore, I've already visited the site, I have done some tests like verifying DNS capability, DNS's configuration seems good.
I've also tested reverse DNS capability, and it returned me : "196.192.41.137 is blr-univ-diego.dts.mg."
Perhaps, should I change "univ-antsiranana.mg" in our DNS configuration in "blr-univ-diego.dts.mg." ?
Even though we have problem with DNS, I don't understand why I can't send message to a local user.
Thanks
- 04-27-2008 #4Just Joined!
- Join Date
- Feb 2008
- Posts
- 4
Hello!
I've looked in my gmail mailbox and I've found that all the messages that I've sent from univ-antsiranana.mg was sent successfully.
I was so stupid to not verifying my mailbox but reading the logs only...
And about yahoo, I must resolve the problems with our DNS.
Thank you !


Reply With Quote
