OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix + mailman and mail delivery

From: Yogesh Subhash Talekar (yogeshunipune.ernet.in)
Date: Thu Jul 01 2004 - 21:17:49 CDT


sorry resolved ... I was using wrong IP !

> hi,
>
> I am running two instances of Postfix-1.1.11-114, one for in and one for
> outgoing mails. I have configured Mailman-2.1.4
> I have configured a virtual domain and I use virtual-table and aliases on
> outgoing instance of postfix.
>
> Now when I post a message to a mailing list, it gets posted on the
> outgoing instance. But if I give IP of the outgoing instance in mm_cfg.py
> file of Mailman as SMTPHOST, Mailman accepts the post but is not able to
> send it to the members giving this error: "Low level smtp error: (111,
> 'Connection refused')"
>
> So I changed the SMTPHOST's IP to my incoming Postfix's IP. Its working
> fine. But supposing I have few IDs from internal and few from external in
> a list. The mail will first go to outgoing Postfix then Mailman will
> expand the list and inject them one by one in the incoming Postfix and if
> the mail has to go out of my network it will again re-enter the outgoing
> Postfix and then leave the server.
>
> So what I have done wrong with the outgoing postfix that its not accepting
> mails from Mailman at all?? I have pasted both postconf -n outputs below?
>
> TIA
>
> --yogesh
>
> ---------------Postconf for outgoing instance ---------------
> alias_maps = hash:/etc/aliases, hash:/var/mailman/data/aliases
> command_directory = /usr/sbin
> config_directory = /etc/postfix-out
> content_filter =
> daemon_directory = /usr/lib/postfix
> debug_peer_level = 2
> default_destination_concurrency_limit = 10
> default_destination_recipient_limit = 50
> default_extra_recipient_limit = 1000
> default_minimum_delivery_slots = 3
> default_process_limit = 50
> default_recipient_limit = 10000
> delay_warning_time = 4h
> disable_dns_lookups = no
> inet_interfaces = *outgoing.Postfix.IP*
> initial_destination_concurrency = 5
> mail_name = Mail Server
> mail_owner = postfix
> mail_spool_directory = /var/mail
> mailbox_command = /usr/bin/procmail -a "$EXTENSION"
> mailbox_transport =
> mailq_path = /usr/bin/mailq
> manpage_directory = /usr/share/man
> mydestination = mydomain.com
> mydomain = mydomain.com
> myhostname = mailt-out.mydomain.com
> mynetworks = hash:/etc/postfix-out/mynetworks,
> hash:/etc/postfix-out/mynetworks.dr
> mynetworks_style = host
> myorigin = $mydomain
> newaliases_path = /usr/sbin/sendmail
> owner_request_special = no
> qmgr_fudge_factor = 100
> qmgr_message_active_limit = 10000
> qmgr_message_recipient_limit = 10000
> qmgr_message_recipient_minimum = 10
> qmgr_site_hog_factor = 100
> queue_directory = /var/spool/postfix-out
> readme_directory = /usr/share/doc/packages/postfix/README_FILES
> recipient_canonical_maps = hash:/etc/postfix-out/recipient_canonical,
> ldap:faxprocldap, ldap:receipldap, ldap:receipldap2,
> recipient_delimiter = +
> relayhost =
> sample_directory = /usr/share/doc/packages/postfix/samples
> sender_canonical_maps = hash:/etc/postfix-out/sender_canonical,
> ldap:senderldap, ldap:senderlda
> p2
> sendmail_path = /usr/sbin/sendmail
> setgid_group = maildrop
> smtp_bind_address = 57.66.52.70
> smtp_connect_timeout = 180s
> smtp_line_length_limit = 1024
> smtpd_banner = $myhostname ESMTP $mail_name
> smtpd_client_restrictions =
> smtpd_helo_required = yes
> smtpd_helo_restrictions =
> smtpd_recipient_limit = 1000
> smtpd_recipient_restrictions = permit_mynetworks,
> reject_unauth_destination
> strict_rfc821_envelopes = no
> syslog_facility = local1
> syslog_name = postfix-out
> transport_maps = hash:/etc/postfix-out/transport,
> hash:/etc/postfix-out/baddomains_transport
> virtual_maps = hash:/etc/postfix-out/virtual,
> hash:/var/mailman/data/virtual-mailman
>
> ====================Postconf for incoming instance ============
>
> alias_maps = hash:/etc/aliases
> body_checks = regexp:/etc/postfix-in/body_checks_bscatter
> command_directory = /usr/sbin
> config_directory = /etc/postfix-in
> content_filter =
> daemon_directory = /usr/lib/postfix
> debug_peer_level = 2
> defer_transports =
> disable_dns_lookups = no
> header_checks = regexp:/etc/postfix-in/header_checks_viruses,
> regexp:/etc/postfix-in/header_checks_bscatter
> inet_interfaces = 57.66.52.71
> mail_name = Mail Server
> mail_owner = postfix
> mail_spool_directory = /var/mail
> mailbox_command =
> mailbox_transport =
> mailq_path = /usr/bin/mailq
> manpage_directory = /usr/share/man
> maximal_backoff_time = 600s
> minimal_backoff_time = 120s
> mydestination = ihqm001a1.mydomain.com
> mydomain = mydomain.com
> myhostname = mailt-in.mydomain.com
> mynetworks = hash:/etc/postfix-in/mynetworks
> mynetworks_style = host
> newaliases_path = /usr/sbin/sendmail
> queue_directory = /var/spool/postfix-in
> queue_run_delay = 300s
> readme_directory = /usr/share/doc/packages/postfix/README_FILES
> relay_domains = hash:/etc/postfix-in/relay_domains
> relocated_maps = hash:/etc/postfix-in/relocated
> sample_directory = /usr/share/doc/packages/postfix/samples
> sender_canonical_maps = hash:/etc/postfix-in/sender_canonical
> sendmail_path = /usr/sbin/sendmail
> setgid_group = maildrop
> smtp_bind_address = *incoming-Postfix-IP*
> smtp_line_length_limit = 1024
> smtpd_banner = mailt.mydomain.com ESMTP $mail_name
> smtpd_client_restrictions =
> smtpd_error_sleep_time = 0
> smtpd_helo_required = no
> smtpd_helo_restrictions =
> smtpd_recipient_restrictions = permit_mynetworks
> reject_unauth_destination check_sender_access
> hash:/etc/postfix-in/sender_acces
> s, check_sender_access regexp:/etc/postfix-in/banned_sender.regexp,
> check_recipient_access hash:/etc/postfix-in/whitelist_recipi
> ent, check_sender_access hash:/etc/postfix-in/whitelist_sender,
> check_client_access hash:/etc/postfix-in/whitelist_client,
> smtpd_sender_restrictions = hash:/etc/postfix-in/access
> strict_rfc821_envelopes = no
> syslog_facility = local0
> syslog_name = postfix-in
> transport_maps = hash:/etc/postfix-in/transport
> virtual_maps = hash:/etc/postfix-in/virtual, ldap:corpldap ,
> ldap:genericldap
>
>

--yogesh

++++++++++++++++++++++++++++++++++++++++++++++++
One RAID to backup them all, one RAID to find them, one RAID to bring them
all and in the darkness bind them.
++++++++++++++++++++++++++++++++++++++++++++++++