Postfix - To many hops

abolinhas
abolinhas used Ask the Experts™
on
Hi,

When I try send an email,  I recive this output in mail.log
Jul 16 19:27:37 mail1 postfix/smtp[17138]: CFA854B49: to=<andre.bolinhas@gmail.com>, relay=localhost[127.0.0.1]:10024, delay=4.7, delays=0.03/0/0.02/4.7, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=19613-06)


but in roundcube I recive this error.
http://share.arqui300.com/storage/arqui300/ftp/many_hops.PNG

Regards
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
President
Commented:
Hi,

It seems that there's a configuration error with your postfix. Since it says localhost:10024 I guess you are using amavis ore some similar software. But I guess you've forgotten to properly configure your /etc/postfix/main.cf

will you please post the contents of your master.cf and mail.cf here?

Cheers,
K.

Author

Commented:
main.cf
smtpd_banner=$myhostname ESMTP $mail_name (Debian/GNU)

biff=no
append_dot_mydomain=no
readme_directory=no
smtpd_tls_cert_file = /etc/ssl/certs/postfix/ca.crt
smtpd_tls_key_file = /etc/ssl/certs/postfix/ca.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:$data_directory/smtpd_tls_cache
smtp_tls_session_cache_database=btree:/var/lib/postfix/smtpd_tls_session_cache
myhostname=mail1.arqui300.com
alias_database=hash:/etc/aliases
mailbox_size_limit=10240000
recipient_delimiter=+
inet_interfaces=all
smtpd_tls_CAfile = /etc/ssl/certs/postfix/ca.csr
bounce_service_name=bounce
bounce_size_limit=50000
bounce_notice_recipient=postmaster
double_bounce_sender=double-bounce
message_size_limit=10240000
mime_nesting_limit=100
header_address_token_limit=10240
smtpd_reject_unlisted_recipient=yes
smtp_connection_cache_on_demand=yes
smtp_connection_cache_time_limit=2s
smtp_connection_reuse_time_limit=300s
connection_cache_ttl_limit=2s
connection_cache_status_update_time=600s
address_verify_sender=double-bounce
address_verify_negative_cache=yes
address_verify_negative_expire_time=3d
address_verify_negative_refresh_time=3h
address_verify_poll_count=3
address_verify_poll_delay=3s
address_verify_positive_expire_time=31d
address_verify_positive_refresh_time=7d
virtual_mailbox_limit=10240000
smtpd_error_sleep_time=1s
smtpd_soft_error_limit=10
smtpd_hard_error_limit=20
smtpd_client_connection_count_limit=50
smtpd_client_connection_rate_limit=0
smtpd_client_message_rate_limit=0
smtpd_client_recipient_rate_limit=0
smtpd_client_new_tls_session_rate_limit=0
in_flow_delay=1s
smtp_helo_timeout=300s
smtp_connect_timeout=30s
default_destination_recipient_limit=50
smtpd_recipient_limit=1000
queue_run_delay=300s
minimal_backoff_time=300s
maximal_backoff_time=4000s
maximal_queue_lifetime=5d
bounce_queue_lifetime=5d
qmgr_message_recipient_limit=20000
qmgr_message_recipient_minimum=10
default_process_limit=100
myorigin=$mydomain
smtpd_timeout=300
ignore_mx_lookup_error=no
disable_dns_lookups = yes
smtpd_tls_ask_ccert=no
smtpd_tls_security_level = may
smtpd_tls_req_ccert=no
smtpd_tls_received_header = yes
smtp_sender_dependent_authentication=yes
undisclosed_recipients_header=To: undisclosed-recipients:;
initial_destination_concurrency=5
default_destination_concurrency_limit=20
local_destination_concurrency_limit=2
smtp_destination_concurrency_limit=$default_destination_concurrency_limit
smtp_tls_mandatory_protocols=SSLv3,TLSv1
2bounce_notice_recipient=postmaster
error_notice_recipient=postmaster
delay_notice_recipient=postmaster
empty_address_recipient=MAILER-DAEMON
smtp_send_xforward_command=yes
smtpd_sasl_path = smtpd
virtual_uid_maps=static:5000
virtual_gid_maps=static:5000
bounce_template_file=/etc/postfix/bounce.template.cf
mailbox_transport=lmtp:unix:/var/run/cyrus/socket/lmtp
virtual_transport=$mailbox_transport
content_filter = smtp:[localhost]:10024
receive_override_options=
relay_domains=ldap:RelaisDomainsTable
VirtualAliasMailingTable_server_host=127.0.0.1
VirtualAliasMailingTable_server_port=389
VirtualAliasMailingTable_bind=yes
VirtualAliasMailingTable_bind_dn=cn=admin,dc=nodomain
VirtualAliasMailingTable_bind_pw=password
VirtualAliasMailingTable_search_base=dc=organizations,dc=nodomain
VirtualAliasMailingTable_timeout=10
VirtualAliasMailingTable_query_filter=(&(objectClass=MailingAliasesTable)(cn=%s))
VirtualAliasMailingTable_version=3
VirtualAliasMailingTable_result_attribute=MailingListAddress
local_recipient_maps=ldap:VirtualMailboxMapsTable
virtual_mailbox_base=/usr/local/virtual
AliasMapsTable_server_host=127.0.0.1
AliasMapsTable_server_port=389
AliasMapsTable_bind=yes
AliasMapsTable_bind_dn=cn=admin,dc=nodomain
AliasMapsTable_bind_pw=password
AliasMapsTable_search_base=dc=organizations,dc=nodomain
AliasMapsTable_timeout=10
AliasMapsTable_query_filter=(&(objectClass=userAccount)(uid=%u))
AliasMapsTable_version=3
AliasMapsTable_result_attribute=mail
recipient_canonical_maps=ldap:RecipientCanonicalTable
RecipientCanonicalTable_server_host=127.0.0.1
RecipientCanonicalTable_server_port=389
RecipientCanonicalTable_bind=yes
RecipientCanonicalTable_bind_dn=cn=admin,dc=nodomain
RecipientCanonicalTable_bind_pw=password
RecipientCanonicalTable_search_base=dc=organizations,dc=nodomain
RecipientCanonicalTable_timeout=10
RecipientCanonicalTable_query_filter=(&(objectClass=RecipientCanonicalMaps)(cn=%s))
RecipientCanonicalTable_version=3
RecipientCanonicalTable_result_attribute=MailAlternateAddress
smtpd_milters=unix:/var/spool/postfix/var/run/amavisd-milter/amavisd-milter.sock
milter_connect_macros=j _ {daemon_name} {if_name} {if_addr} {client_name} {client_addr} {client_resolve} {client_ptr}
milter_helo_macros={tls_version} {cipher} {cipher_bits} {cert_subject} {cert_issuer}
milter_mail_macros=i {auth_type} {auth_authen} {auth_ssf} {auth_author} {mail_mailer} {mail_host} {mail_addr} {client_addr} {if_addr}
milter_rcpt_macros={rcpt_mailer} {rcpt_host} {rcpt_addr} {client_addr} {if_addr}
milter_default_action=accept
milter_protocol=6
milter_connect_timeout=180
milter_command_timeout=180
milter_content_timeout=600
smtp_sasl_auth_enable=yes
smtp_sasl_security_options=noanonymous
smtp_sasl_mechanism_filter=plain, login
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_authenticated_header = yes
smtpd_tls_auth_only = yes
smtpd_tls_session_cache_timeout=3600s
smtpd_helo_required=yes
postmap=hash:/etc/postfix/pwd
mydomain = arqui300.com
smtpd_client_restrictions=check_client_access ldap:smtpd_client_restrictions_check_client_access
smtpd_client_restrictions_check_client_access_server_host=127.0.0.1
smtpd_client_restrictions_check_client_access_server_port =389
smtpd_client_restrictions_check_client_access_bind = yes
smtpd_client_restrictions_check_client_access_bind_dn =cn=admin,dc=nodomain
smtpd_client_restrictions_check_client_access_bind_pw =password
smtpd_client_restrictions_check_client_access_search_base =cn=check_client_access,cn=smtpd_client_restrictions,cn=restrictions_classes,cn=artica,dc=nodomain
smtpd_client_restrictions_check_client_access_timeout = 10
smtpd_client_restrictions_check_client_access_query_filter =(&(cn=%s)(objectClass=PostFixRestrictionCheckAccess))
smtpd_client_restrictions_check_client_access_result_attribute = PostFixRestrictionTableAction
smtpd_client_restrictions_check_client_access_version =3
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
#mydestination, transport.................................
mydestination=ldap:mydestinationTable
#LDAP mydestinationTable --------------------------------------------------------------------
mydestinationTable_server_host=127.0.0.1
mydestinationTable_server_port =389
mydestinationTable_bind = yes
mydestinationTable_bind_dn =cn=admin,dc=nodomain
mydestinationTable_bind_pw =password
mydestinationTable_search_base =dc=organizations,dc=nodomain
mydestinationTable_timeout = 10
mydestinationTable_query_filter =(&(objectclass=organizationalUnit)(associatedDomain=%s))
mydestinationTable_version =3
mydestinationTable_result_attribute =associatedDomain
#----------------------------------------------------------------------
transport_maps=ldap:TransportUsersTable,ldap:TransportMapsTable
virtual_transport_maps=ldap:TransportMapsTable
#LDAP TransportMapsTable --------------------------------------------------------------------
TransportMapsTable_server_host=127.0.0.1
TransportMapsTable_server_port =389
TransportMapsTable_bind = yes
TransportMapsTable_bind_dn =cn=admin,dc=nodomain
TransportMapsTable_bind_pw =password
TransportMapsTable_search_base =dc=nodomain
TransportMapsTable_timeout = 10
TransportMapsTable_query_filter =(&(objectClass=transportTable)(cn=%d))
TransportMapsTable_version =3
TransportMapsTable_result_attribute =transport
#LDAP TransportUsersTable --------------------------------------------------------------------
TransportUsersTable_server_host=127.0.0.1
TransportUsersTable_server_port =389
TransportUsersTable_bind = yes
TransportUsersTable_bind_dn =cn=admin,dc=nodomain
TransportUsersTable_bind_pw =password
TransportUsersTable_search_base =dc=nodomain
TransportUsersTable_timeout = 10
TransportUsersTable_query_filter =(&(objectClass=UserArticaClass)(mail=%s))
TransportUsersTable_version =3
TransportUsersTable_result_attribute =AlternateSmtpRelay
#LDAP TransportMailmanMaps --------------------------------------------------------------------
TransportMailmanMaps_server_host=127.0.0.1
TransportMailmanMaps_server_port =389
TransportMailmanMaps_bind = yes
TransportMailmanMaps_bind_dn =cn=admin,dc=nodomain
TransportMailmanMaps_bind_pw =password
TransportMailmanMaps_search_base =cn=robots,cn=mailman,cn=artica,dc=nodomain
TransportMailmanMaps_timeout = 10
TransportMailmanMaps_query_filter =(&(objectClass=ArticaMailManRobots)(cn=%s))
TransportMailmanMaps_version =3
TransportMailmanMaps_result_attribute =TransportMailmanMaps
mynetworks = 10.0.0.0/8, 192.168.0.0/24, 127.0.0.0/8, 195.23.29.82/32
relay_domains=ldap:RelaisDomainsTable
#LDAP RelaisDomainsTable --------------------------------------------------------------------
RelaisDomainsTable_server_host=127.0.0.1
RelaisDomainsTable_server_port =389
RelaisDomainsTable_bind = yes
RelaisDomainsTable_bind_dn =cn=admin,dc=nodomain
RelaisDomainsTable_bind_pw =password
RelaisDomainsTable_search_base =dc=nodomain
RelaisDomainsTable_timeout = 10
RelaisDomainsTable_query_filter =(&(objectclass=PostFixRelayDomains)(cn=%s))
RelaisDomainsTable_version =3
RelaisDomainsTable_result_attribute =cn
relay_recipient_maps=ldap:RelaisRecipientTable
#LDAP RelaisRecipientTable --------------------------------------------------------------------
RelaisRecipientTable_server_host=127.0.0.1
RelaisRecipientTable_server_port =389
RelaisRecipientTable_bind = yes
RelaisRecipientTable_bind_dn =cn=admin,dc=nodomain
RelaisRecipientTable_bind_pw =password
RelaisRecipientTable_search_base =dc=nodomain
RelaisRecipientTable_timeout = 10
RelaisRecipientTable_query_filter =(&(objectclass=PostfixRelayRecipientMaps)(cn=%s))
RelaisRecipientTable_version =3
RelaisRecipientTable_result_attribute =cn
virtual_alias_maps=ldap:VirtualAliasMapsTable,ldap:VirtualAliasMailingTable
#LDAP VirtualAliasMapsTable --------------------------------------------------------------------
VirtualAliasMapsTable_server_host=127.0.0.1
VirtualAliasMapsTable_server_port =389
VirtualAliasMapsTable_bind = yes
VirtualAliasMapsTable_bind_dn =cn=admin,dc=nodomain
VirtualAliasMapsTable_bind_pw =password
VirtualAliasMapsTable_search_base =dc=organizations,dc=nodomain
VirtualAliasMapsTable_timeout = 10
VirtualAliasMapsTable_query_filter =(&(objectClass=userAccount)(mailAlias=%s))
VirtualAliasMapsTable_version =3
VirtualAliasMapsTable_result_attribute =mail
#LDAP VirtualMailManMaps --------------------------------------------------------------------
VirtualMailManMaps_server_host=127.0.0.1
VirtualMailManMaps_server_port =389
VirtualMailManMaps_bind = yes
VirtualMailManMaps_bind_dn =cn=admin,dc=nodomain
VirtualMailManMaps_bind_pw =password
VirtualMailManMaps_search_base =cn=mailman,cn=artica,dc=nodomain
VirtualMailManMaps_timeout = 10
VirtualMailManMaps_query_filter =(&(objectClass=ArticaMailManRobots)(cn=%s))
VirtualMailManMaps_version =3
VirtualMailManMaps_result_attribute =cn
#LDAP VirtualAliasMailingTable --------------------------------------------------------------------
VirtualAliasMailingTable_server_host=127.0.0.1
VirtualAliasMailingTable_server_port =389
VirtualAliasMailingTable_bind = yes
VirtualAliasMailingTable_bind_dn =cn=admin,dc=nodomain
VirtualAliasMailingTable_bind_pw =password
VirtualAliasMailingTable_search_base =dc=organizations,dc=nodomain
VirtualAliasMailingTable_timeout = 10
VirtualAliasMailingTable_query_filter =(&(objectClass=MailingAliasesTable)(cn=%s))
VirtualAliasMailingTable_version =3
VirtualAliasMailingTable_result_attribute =MailingListAddress
##############################################
# virtual_mailbox_maps, mailbox_maps & alias_maps
virtual_mailbox_maps=ldap:VirtualMailboxMapsTable
alias_maps=ldap:AliasMapsTable
local_recipient_maps=ldap:VirtualMailboxMapsTable
virtual_mailbox_base = /usr/local/virtual
#LDAP VirtualMailboxMapsTable --------------------------------------------------------------------
VirtualMailboxMapsTable_server_host=127.0.0.1
VirtualMailboxMapsTable_server_port =389
VirtualMailboxMapsTable_bind = yes
VirtualMailboxMapsTable_bind_dn =cn=admin,dc=nodomain
VirtualMailboxMapsTable_bind_pw =password
VirtualMailboxMapsTable_search_base =dc=organizations,dc=nodomain
VirtualMailboxMapsTable_timeout = 10
VirtualMailboxMapsTable_query_filter =(&(objectClass=userAccount)(mail=%s))
VirtualMailboxMapsTable_version =3
VirtualMailboxMapsTable_result_attribute =uid
#LDAP AliasMapsTable --------------------------------------------------------------------
AliasMapsTable_server_host=127.0.0.1
AliasMapsTable_server_port =389
AliasMapsTable_bind = yes
AliasMapsTable_bind_dn =cn=admin,dc=nodomain
AliasMapsTable_bind_pw =password
AliasMapsTable_search_base =dc=organizations,dc=nodomain
AliasMapsTable_timeout = 10
AliasMapsTable_query_filter =(&(objectClass=userAccount)(uid=%u))
AliasMapsTable_version =3
AliasMapsTable_result_attribute =mail
smtp_sasl_password_maps=ldap:SmtpSaslPasswordMaps
#LDAP SmtpSaslPasswordMaps --------------------------------------------------------------------
SmtpSaslPasswordMaps_server_host=127.0.0.1
SmtpSaslPasswordMaps_server_port =389
SmtpSaslPasswordMaps_bind = yes
SmtpSaslPasswordMaps_bind_dn =cn=admin,dc=nodomain
SmtpSaslPasswordMaps_bind_pw =password
SmtpSaslPasswordMaps_search_base =cn=smtp_sasl_password_maps,cn=artica,dc=nodomain
SmtpSaslPasswordMaps_timeout = 10
SmtpSaslPasswordMaps_query_filter =(&(objectClass=PostfixSmtpSaslPaswordMaps)(cn=%s))
SmtpSaslPasswordMaps_version =3
SmtpSaslPasswordMaps_result_attribute =SmtpSaslPasswordString
sender_canonical_maps=ldap:senderCanonicalTable
#LDAP senderCanonicalTable --------------------------------------------------------------------
senderCanonicalTable_server_host=127.0.0.1
senderCanonicalTable_server_port =389
senderCanonicalTable_bind = yes
senderCanonicalTable_bind_dn =cn=admin,dc=nodomain
senderCanonicalTable_bind_pw =password
senderCanonicalTable_search_base =dc=organizations,dc=nodomain
senderCanonicalTable_timeout = 10
senderCanonicalTable_query_filter =(&(objectClass=userAccount)(mail=%s))
senderCanonicalTable_version =3
senderCanonicalTable_result_attribute =SenderCanonical
recipient_canonical_maps=ldap:RecipientCanonicalTable
#LDAP RecipientCanonicalTable --------------------------------------------------------------------
RecipientCanonicalTable_server_host=127.0.0.1
RecipientCanonicalTable_server_port =389
RecipientCanonicalTable_bind = yes
RecipientCanonicalTable_bind_dn =cn=admin,dc=nodomain
RecipientCanonicalTable_bind_pw =password
RecipientCanonicalTable_search_base =dc=organizations,dc=nodomain
RecipientCanonicalTable_timeout = 10
RecipientCanonicalTable_query_filter =(&(objectClass=RecipientCanonicalMaps)(cn=%s))
RecipientCanonicalTable_version =3
RecipientCanonicalTable_result_attribute =MailAlternateAddress
artica_destination_recipient_limit = 1
smtpd_milters=unix:/var/spool/postfix/var/run/amavisd-milter/amavisd-milter.sock
milter_connect_macros = j _ {daemon_name} {if_name} {if_addr} {client_name} {client_addr} {client_resolve} {client_ptr}
milter_helo_macros = {tls_version} {cipher} {cipher_bits} {cert_subject} {cert_issuer}
milter_mail_macros = i {auth_type} {auth_authen} {auth_ssf} {auth_author} {mail_mailer} {mail_host} {mail_addr} {client_addr} {if_addr}
milter_rcpt_macros = {rcpt_mailer} {rcpt_host} {rcpt_addr} {client_addr} {if_addr}
milter_default_action = accept
milter_protocol = 6
milter_connect_timeout=180
milter_command_timeout=180
milter_content_timeout=600

mynetworks_style = subnet



master.cf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp    inet    n       -       n       -       -       smtpd
pickup  fifo    n       -       n       60      1       pickup
cleanup unix    n       -       n       -       0       cleanup
qmgr    fifo    n       -       n       300     1       qmgr
tlsmgr  unix    -       -       n       1000?   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
proxywrite      unix    -       -       n       -       1       proxymap
smtp    unix    -       -       n       -       -       smtp
relay   unix    -       -       n       -       -       smtp
 -o fallback_relay=

showq   unix    n       -       n       -       -       showq
error   unix    -       -       n       -       -       error
discard unix    -       -       n       -       -       discard
local   unix    -       n       n       -       -       local
virtual unix    -       n       n       -       -       virtual
lmtp    unix    -       -       n       -       -       lmtp
anvil   unix    -       -       n       -       1       anvil
scache  unix    -       -       n       -       1       scache
scan    unix    -       -       n       -       10      smtp
maildrop        unix    -       n       n       -       -       pipe
retry   unix    -       -       n       -       -       error

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 -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}
mailman                 unix    -       n       n       -       -       pipe
 flags=FR user=mail:mail argv=/etc/mailman/postfix-to-mailman.py ${nexthop} ${mailbox}

gnarwl    unix  -       n       n       -       -       pipe
  flags=F  user=gnarwl argv=/usr/bin/gnarwl -a ${user}@${nexthop} -s ${sender}
Kerem ERSOYPresident
Commented:
The configuration above is the same as what I'd thought in the beginning.

You listen your port 25 for the email. Once you've got it you inject it out to your content filter with:

content_filter = smtp:[localhost]:10024

But then afterthe content filter finishes work it should be injected back to your postfix. So you'll require this on your master CF such as:

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,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

But you're missing it.

Further more you have lots of LDAP queries. To see if they really succeed I'll  suggest you to comment the initial content_filer line and test if all the LDAP queries work as you'd expected and you're sure that it can receive and deliver mail without a problem. You then enable the filter back and add the  above lines to your master.cf

Don't forget to issue

postfix reload

after each modification to your main.cf and master.cf
 
 
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Please do a Ping to gmail.com
Kerem ERSOYPresident
Commented:
We'd better ping the asker too :))

Author

Commented:
Hi,

This problem is already solved, Thanks for your help.
How do you solved it? Do you know how to use a forum?
Kerem ERSOYPresident

Commented:
I've posted my opinion but there was no feedback from the asker. This is clearly a violation of the EE Rules !
;-)

KeremE, have a nice day!

Author

Commented:
Hi,


Sorry for not sharing the solucion.

Here she goes.

in my case, there were two things that were causing this  hops problem. The content_filter and Relayhost.

First - In main.cf I change the content_filter = smtp:[localhost]:10024 to content_filter =

Second - I had to configure my relayhost with authentication.

These are the steps that I use  to set up Postfix to use SMTP Authentication to send mail through a relay host.

Set up a password maps file (/etc/postfix/sasl_passwd) as follows:
mail.ispserver.com    username:password

chown root:root /etc/postfix/sasl_passwd; chmod 600 /etc/postfix/sasl_passwd

postmap /etc/postfix/sasl_passwd

In /etc/postfix/main.cf:
relayhost = mail.ispserver.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =

Best regards and again sorry for not sharing the solucion sooner

Author

Commented:
I split 125 point to every one

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial