
16th October 2009, 21:58
|
|
Member
|
|
Join Date: Aug 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
smtp_bind_address
when i use smtp_bind_address there are some error on mail log:
Oct 16 22:26:20 server postfix/smtp[31904]: 9AC3B1343FF: to=<user@domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=40, delays=40/0/0/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting)
how can i solve that?
________
BrilliantMia live
Last edited by mbunal; 8th September 2011 at 07:48.
|

17th October 2009, 14:15
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
Without smtp_bind_address, there are no such errors?
What's the output of ?
|

17th October 2009, 16:44
|
|
Member
|
|
Join Date: Aug 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
there is no error without smtp_bind_address.
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:10024 *:* LISTEN 19931/amavisd (ch7-
tcp 0 0 localhost:10025 *:* LISTEN 480/master
tcp 0 0 localhost:mysql *:* LISTEN 30370/mysqld
tcp 0 0 localhost:spamd *:* LISTEN 2274/spamd.pid
tcp 0 0 *:sunrpc *:* LISTEN 1850/portmap
tcp 0 0 *:ssmtp *:* LISTEN 480/master
tcp 0 0 localhost:884 *:* LISTEN 2828/famd
tcp 0 0 *:33044 *:* LISTEN 1861/rpc.statd
tcp 0 0 ns1.server:domain *:* LISTEN 31391/mydns
tcp 0 0 ns.local.c:domain *:* LISTEN 31391/mydns
tcp 0 0 ns2.server:domain *:* LISTEN 31391/mydns
tcp 0 0 localhost:domain *:* LISTEN 31391/mydns
tcp 0 0 *:ftp *:* LISTEN 31385/pure-ftpd (SE
tcp 0 0 *:ssh *:* LISTEN 2099/sshd
tcp 0 0 *:smtp *:* LISTEN 480/master
tcp 0 0 localhost:35545 localhost:mysql ESTABLISHED 19931/amavisd (ch7-
tcp 0 0 localhost:mysql localhost:53208 TIME_WAIT -
tcp 0 0 localhost:53207 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:53206 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:mysql localhost:53205 TIME_WAIT -
tcp 0 0 localhost:mysql localhost:35545 ESTABLISHED 30370/mysqld
tcp 0 0 localhost:53204 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:53203 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:mysql localhost:59875 ESTABLISHED 30370/mysqld
tcp 0 0 localhost:59875 localhost:mysql ESTABLISHED 20020/amavisd (ch5-
tcp6 0 0 [::]:imaps [::]:* LISTEN 31308/couriertcpd
tcp6 0 0 [::] op3s [::]:* LISTEN 31336/couriertcpd
tcp6 0 0 [::] op3 [::]:* LISTEN 31319/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 31290/couriertcpd
tcp6 0 0 [::]:http-alt [::]:* LISTEN 31368/apache2
tcp6 0 0 [::]:www [::]:* LISTEN 31368/apache2
tcp6 0 0 localhost:domain [::]:* LISTEN 31391/mydns
tcp6 0 0 [::]:ftp [::]:* LISTEN 31385/pure-ftpd (SE
tcp6 0 0 [::]:ssh [::]:* LISTEN 2099/sshd
tcp6 0 0 [::]:https [::]:* LISTEN 31368/apache2
________
Washington dispensaries
Last edited by mbunal; 8th September 2011 at 07:48.
|

18th October 2009, 13:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
Quote:
|
tcp 0 0 *:smtp *:* LISTEN 480/master
|
Postfix is listening on all interfaces.
Can you post your main.cf?
|

18th October 2009, 18:12
|
|
Member
|
|
Join Date: Aug 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
#smtp_bind_address = xx.xx.xx.xx
# 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 (Debian/GNU)
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
readme_directory = /usr/share/doc/postfix
# 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:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_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 = server1.domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server1.domain.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::1]/128 xx.xx.xx.xx
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
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 = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_tls_security_level = may
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
virtual_create_maildirsize = yes
virtual_maildir_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 $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
________
PROBLEMS WITH PRILOSEC
Last edited by mbunal; 8th September 2011 at 07:48.
|

19th October 2009, 14:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
But the smtp_bind_address line is commented out...
|

19th October 2009, 20:46
|
|
Member
|
|
Join Date: Aug 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by falko
But the smtp_bind_address line is commented out... 
|
becouse it is not working without comment. and this is produciton server. it must be run.
________
How To Make A Bong
Last edited by mbunal; 8th September 2011 at 07:48.
|

20th October 2009, 10:16
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Instead of smtp_bind_address, you can try:
inet_interfaces = 192.168.1.2, 127.0.0.1
where you have to replace 192.168.1.2 with your external address.
|

20th October 2009, 10:46
|
|
Member
|
|
Join Date: Aug 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
Instead of smtp_bind_address, you can try:
inet_interfaces = 192.168.1.2, 127.0.0.1
where you have to replace 192.168.1.2 with your external address.
|
i tried that. but that setting only change listening ip's.
i want to change outgoing ip address.
i have 2 ip address. one them(a) is in blacklist, other(b) not. also i use ip masquerade via a. i want to isolate outgoing mail (via b) and internet traffic (via a).
________
Stickywetcouple
Last edited by mbunal; 8th September 2011 at 07:48.
|

20th October 2009, 10:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
If you add just the outgoing IP and 127.0.0.1, then there is no other IP address to send for postfix and it should use the outgoing IP.
|
|
The Following User Says Thank You to till For This Useful Post:
|
mbunal (20th October 2009)
|
| 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 10:30.
|
Recent comments
1 day 9 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 10 hours ago
2 days 10 hours ago
2 days 15 hours ago
2 days 22 hours ago
2 days 23 hours ago
3 days 25 min ago