LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-12-2007, 08:09 AM   #1
bugg_tb
LQ Newbie
 
Registered: May 2004
Distribution: suse
Posts: 21

Rep: Reputation: 15
Centos, Fetchmail, Postfix, Open Exchange = Weird Mail behaviour


Hi Guys,

I'm playing around with open exchange(using the ava-sbs script), and I want it to fetch my email from my isp pop3 account so in my users root dir I've added,

Code:
poll mail.wamonline.org.uk
        proto pop3
        user "tom@wamonline.org.uk"
        pass "*******"
        is bugg
which downloads all the mail, and seems to work fine,

but once its downloaded it shunts them off to postfix(is this normal I know squat about mailing systems) and postfix seems to dump about 1/2 in the relative inbox for my open exchange account and the other 1/2 sit in the queue with an MTA error, even though they are all addressed to the same person.

My main.cf was generated by a script and looks like..


Code:
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix

myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, ldap:ldapvdoms

##################### ldaptrans ################
ldaptrans_bind_dn= cn=Manager,dc=socialenterprise,dc=com
ldaptrans_bind_pw= fdr6v5
ldaptrans_server_host= 127.0.0.1
ldaptrans_server_port= 389
ldaptrans_bind= yes
ldaptrans_timeout= 20
ldaptrans_search_base= ou=MailTransports,ou=SMTPObjects,ou=AdminObjects,ou=OxObjects,dc=socialenterprise,dc=com
ldaptrans_query_filter= (&(objectclass=OXMailTransportObject)(smtpDomain=%s))
ldaptrans_result_attribute= smtpDomainTransportNexthop
ldaptrans_scope= one
ldaptrans_version= 3


################### ALIASES #####################################
ldapaliases_bind_dn= cn=Manager,dc=socialenterprise,dc=com
ldapaliases_bind_pw= fdr6v5
ldapaliases_search_base= ou=Users,ou=OxObjects,dc=socialenterprise,dc=com
ldapaliases_server_host= localhost
ldapaliases_server_port= 389
ldapaliases_bind= yes
ldapaliases_timeout= 20
ldapaliases_query_filter= (&(alias=%s)(objectclass=shadowAccount))
ldapaliases_result_attribute= uid
ldapaliases_scope= one
ldapaliases_version= 3


#################### ldapvdoms ##########################
ldapvdoms_bind_dn= cn=Manager,dc=socialenterprise,dc=com
ldapvdoms_bind_pw= fdr6v5
ldapvdoms_search_base= ou=VirtualDomains,ou=DNSObjects,ou=AdminObjects,ou=OxObjects,dc=socialenterprise,dc=com
ldapvdoms_server_host= localhost
ldapvdoms_server_port= 389
ldapvdoms_bind= yes
ldapvdoms_timeout= 20
ldapvdoms_query_filter= (&(objectclass=OXVDomainObject)(ou=%s)(MTALocaldomain=true))
ldapvdoms_result_attribute= ou
ldapvdoms_scope= one


################### LDAP_USER ##########################################
ldapuser_bind_dn= cn=Manager,dc=socialenterprise,dc=com
ldapuser_bind_pw= fdr6v5
ldapuser_search_base= ou=Users,ou=OxObjects,dc=socialenterprise,dc=com
ldapuser_server_host= localhost
ldapuser_server_host= localhost
ldapuser_server_port= 389
ldapuser_bind= yes
ldapuser_timeout= 20
ldapuser_query_filter = (uid=%s)
ldapuser_result_attribute= uid
ldapuser_scope= one


unknown_local_recipient_reject_code = 450


# SASL SUPPORT FOR CLIENTS

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtpd_tls_auth_only = yes
broken_sasl_auth_clients = yes


#TLS

smtpd_use_tls = yes
smtpd_tls_key_file = /etc/postfix/newreq-postfix.pem
smtpd_tls_cert_file = /etc/postfix/newcert-postfix.pem
smtpd_tls_CAfile = /etc/postfix/cacert-postfix.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom


mynetworks = 127.0.0.0/8, 192.168.1.2


in_flow_delay = 1s
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/lib/cyrus-imapd/deliver
mailbox_transport = cyrus


header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks


smtpd_banner = $myhostname ESMTP
local_destination_concurrency_limit = 2
debug_peer_level = 2
debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     xxgdb $daemon_directory/$process_name $process_id & sleep 5


sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.11/samples
readme_directory = /usr/share/doc/postfix-2.0.11/README_FILES


smtpd_helo_required = yes
allow_untrusted_routing = no


smtpd_client_restrictions = reject_rbl_client relays.ordb.org,
                  permit_sasl_authenticated,
                  reject_rbl_client opm.blitzed.org,
                  reject_rbl_client sbl.spamhaus.org,
                  reject_rhsbl_client blackhole.securitysage.com,
                  permit_mynetworks,


smtpd_helo_restrictions =   reject_rbl_client relays.ordb.org,
                       reject_rbl_client opm.blitzed.org,
                       reject_rbl_client sbl.spamhaus.org,
                       reject_rhsbl_client blackhole.securitysage.com,
                       permit_mynetworks,


smtpd_sender_restrictions = reject_unauth_pipelining,
                        permit_sasl_authenticated,
                        reject_rbl_client relays.ordb.org,
                        reject_rbl_client opm.blitzed.org,
                        reject_rbl_client sbl.spamhaus.org,
                        reject_rhsbl_client blackhole.securitysage.com,
                        reject_rhsbl_sender blackhole.securitysage.com,
                        permit_mynetworks,


smtpd_recipient_restrictions = permit_mynetworks,
                           permit_sasl_authenticated,
                           reject_invalid_hostname,
                           reject_non_fqdn_hostname,
                           reject_non_fqdn_sender,
                           reject_non_fqdn_recipient,
                           reject_unknown_sender_domain,
                           reject_unknown_recipient_domain,
                           reject_unauth_pipelining,
                           reject_unauth_destination,
                           reject_rbl_client relays.ordb.org,
                           reject_rbl_client opm.blitzed.org,
                           reject_rbl_client sbl.spamhaus.org,
                           reject_rhsbl_client blackhole.securitysage.com,
                           reject_rhsbl_sender blackhole.securitysage.com,
                           permit


message_size_limit = 50000000
content_filter = smtp-amavis:[127.0.0.1]:10024



#content_filter=smtp-amavis:[127.0.0.1]:10024
Ignore the fact this is an open exchange installation the problems revolve around Fetchmail and Postfix which don't seem to be playing nice.

Cheers
Tom
 
Old 02-13-2007, 02:00 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I think fetchmail just drops the mail to port 25, and postfix will be listening on that and pick up any mail from fetchmail, so that sounds quire right.

Keys here will be to:

1. tell us what the queue messages look like

2. what your maillog says for a "good" and a "bad" mail

Can you post those?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Mail Restrctions and Exchange Servers msound Linux - General 1 01-22-2007 10:30 PM
Postfix weird mail sending RestInPieces Debian 3 07-03-2006 03:48 PM
fetchmail to exchange 2000 kumareshg Linux - Security 4 05-28-2005 09:20 AM
mail replication postfix + procmail + fetchmail sebastianjustin Linux - Software 5 08-21-2003 07:45 AM
configuring mail server (postfix+fetchmail+procmail) amolchikhale Linux - Networking 0 08-01-2003 04:59 AM


All times are GMT -5. The time now is 03:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration