Generic and change FROM:
sebastian sanchez
grupodixis at gmail.com
Thu Dec 21 19:50:52 CET 2006
HI Group
I delete the old generic.db
and postmap one new:
i have the following generic map:
user at local user at myexternal.com
i want rewrite only the FROM: field
but GENERIC change TO: and FROM:
then if i send a internal mail to user at local never arrive to user at local
and go to user at myexternal.com
what's wrong?
Down my main.cf
Here the Log:
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8798]: connect from
bonnin.com[192.168.1.183]
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8798]: B68CA6EF0B:
client=bonnin.com[192.168.1.183]
Dec 21 19:23:31 bonnin.com <info> postfix/cleanup[8800]: B68CA6EF0B:
message-id=<200612211923.31323.psanchez at bonnin.com>
Dec 21 19:23:31 bonnin.com <info> postfix/qmgr[8723]: B68CA6EF0B:
from=<psanchez at bonnin.com>, size=527, nrcpt=1 (queue active)
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8798]: disconnect from
bonnin.com[192.168.1.183]
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8804]: connect from
localhost.localdomain[127.0.0.1]
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8804]: D76116EF0D:
client=bonnin.com[192.168.1.183]
Dec 21 19:23:31 bonnin.com <info> postfix/cleanup[8805]: D76116EF0D:
message-id=<200612211923.31323.psanchez at bonnin.com>
Dec 21 19:23:31 bonnin.com <info> postfix/qmgr[8723]: D76116EF0D:
from=<psanchez at bonninsanso.com>, size=973, nrcpt=1 (queueactive)
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8804]: disconnect from
localhost.localdomain[127.0.0.1]
Dec 21 19:23:31 bonnin.com <info> postfix/smtp[8801]: B68CA6EF0B:
to=<psanchez at bonnin.com>, relay=127.0.0.1[127.0.0.1], delay=0,
status=sent (250 2.6.0 Ok, id=01890-05, from MTA([127.0.0.1]:10025):
250 Ok: queued as D76116EF0D)
Dec 21 19:23:31 bonnin.com <info> postfix/qmgr[8723]: B68CA6EF0B: removed
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8808]: connect from
localhost.localdomain[127.0.0.1]
Dec 21 19:23:31 bonnin.com <info> postfix/smtpd[8808]: EE36A6EF0C:
client=localhost.localdomain[127.0.0.1]
Dec 21 19:23:32 bonnin.com <info> postfix/cleanup[8805]: EE36A6EF0C:
message-id=<200612211923.31323.psanchez at bonnin.com>
Dec 21 19:23:32 bonnin.com <info> postfix/qmgr[8723]: EE36A6EF0C:
from=<psanchez at bonninsanso.com>, size=1158, nrcpt=1 (queue active)
Dec 21 19:23:32 bonnin.com <info> postfix/smtpd[8808]: disconnect from
localhost.localdomain[127.0.0.1]
Dec 21 19:23:32 bonnin.com <info> postfix/pipe[8806]: D76116EF0D:
to=<psanchez at bonninsanso.com>, relay=kolabfilter, delay=1, status=sent
(bonnin.com)
Dec 21 19:23:32 bonnin.com <info> postfix/qmgr[8723]: D76116EF0D: removed
Dec 21 19:23:33 bonnin.com <info> postfix/smtp[8809]: EE36A6EF0C:
to=<psanchez at bonninsanso.com>, relay=mx.infotelecom.es[213.0.77.57],
delay=2, status=sent (250 2.0.0 kBLI6pUQ017558 Message accepted for
delivery)
Dec 21 19:23:33 bonnin.com <info> postfix/qmgr[8723]: EE36A6EF0C:
removedbonnin:/kolab/var/postfix/log# cat
/root/.mc/cedit/bonnin:/kolab/var/postfix/log# /kolab/bin/openpkg rc
postfix restart
OpenPKG: restart: postfix.
--------------------------------------------------------------------------------------------------------
my main.cf
# (c) 2004 Steffen Hansen <steffen at klaralvdalens-datakonsult.se>
(Klaralvdalens Datakonsult AB)
# (c) 2003 Tassilo Erlewein <tassilo.erlewein at erfrakon.de>
# (c) 2003 Martin Konold <martin.konold at erfrakon.de>
# (c) 2003 Achim Frank <achim.frank at erfrakon.de>
# This program is Free Software under the GNU General Public License (>=v2).
# Read the file COPYING that comes with this packages for details.
# this file is automatically written by the Kolab config backend
# manual additions are lost unless made to the template in the Kolab
config directory
# postfix default is 10 240 000 Byte = 10.24 Megabyte,
# we use 20 Mebibyte = 20*2^20 Byte
message_size_limit = 20971520
# paths
command_directory = /kolab/sbin
daemon_directory = /kolab/libexec/postfix
queue_directory = /kolab/var/postfix
# users
mail_owner= kolab
setgid_group= kolab-r
default_privs= kolab-n
# local host
myhostname = bonnin.com
mydomain = bonnin.com
myorigin = $mydomain
relayhost =
#
masquerade_domains = $mydomain
masquerade_exceptions = root
# smtp daemon
#smtpd_banner = $myhostname ESMTP $mail_name
#inet_interfaces = 127.0.0.1
# relaying
mynetworks = 192.168.0.0/16
mydestination =
relay_domains =
#smtpd_recipient_restrictions = permit_mynetworks,
# check_client_access
hash:/kolab/etc/postfix/access,
# check_relay_domains
# maps
canonical_maps = hash:/kolab/etc/postfix/canonical
virtual_maps = hash:/kolab/etc/postfix/virtual, ldap:ldapdistlist,
ldap:ldapvirtual
relocated_maps = hash:/kolab/etc/postfix/relocated
transport_maps = hash:/kolab/etc/postfix/transport, ldap:ldaptransport
alias_maps = hash:/kolab/etc/postfix/aliases
alias_database = hash:/kolab/etc/postfix/aliases
#virtual_mailbox_maps = $virtual_maps
local_recipient_maps = $virtual_maps
smtp_generic_maps = hash:/data/etc/postfix/generic
# local delivery
recipient_delimiter = +
#mailbox_transport = lmtp:unix:/kolab/var/kolab/lmtp
mailbox_transport = kolabmailboxfilter
#TLS settings
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_starttls_timeout = 300s
smtpd_timeout = 300s
#smtpd_tls_CAfile = /kolab/etc/kolab/server.pem
#smtpd_tls_CApath =
#smtpd_tls_ask_ccert = no
#smtpd_tls_ccert_verifydepth = 5
smtpd_tls_cert_file = /kolab/etc/kolab/cert.pem
#smtpd_tls_cipherlist =
#smtpd_tls_dcert_file =
#smtpd_tls_dh1024_param_file =
#smtpd_tls_dh512_param_file =
#smtpd_tls_dkey_file = $smtpd_tls_dcert_file
#smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_key_file = /kolab/etc/kolab/key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = no
#smtpd_tls_req_ccert = no
#smtpd_tls_session_cache_database =
smtpd_tls_session_cache_timeout = 3600s
#smtpd_tls_wrappermode = no
#tls_random_bytes = 32
tls_random_source = dev:/dev/urandom
#tls_daemon_random_bytes = 32
#tls_daemon_random_source =
#tls_random_exchange_name = ${config_directory}/prng_exch
#tls_random_prng_update_period = 60s
#tls_random_reseed_period = 3600s
#smtp_starttls_timeout = 300s
#smtp_tls_CAfile =
#smtp_tls_CApath =
#smtp_tls_cert_file =
#smtp_tls_cipherlist =
#smtp_tls_dcert_file =
#smtp_tls_dkey_file = $smtp_tls_dcert_file
#smtp_tls_enforce_peername = yes
#smtp_tls_key_file = $smtp_tls_cert_file
#smtp_tls_loglevel = 0
#smtp_tls_note_starttls_offer = no
#smtp_tls_per_site =
#smtp_tls_scert_verifydepth = 5
#smtp_tls_session_cache_database =
#smtp_tls_session_cache_timeout = 3600s
# authentication via sasl
## Kolab Policy Server
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,
reject_unauth_destination, reject_unlisted_recipient,
check_policy_service unix:private/kolabpolicy
smtpd_sender_restrictions = permit_mynetworks, check_policy_service
unix:private/kolabpolicy
kolabpolicy_time_limit = 3600
kolabpolicy_max_idle = 20
#smtpd_restriction_classes =
smtpd_sasl_auth_enable = yes
# We want to allow for uids without any realm
#smtpd_sasl_local_domain = $myhostname
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
# Support broken clients like Microsoft Outlook Express 4.x which
expect AUTH=LOGIN instead of AUTH LOGIN
broken_sasl_auth_clients = yes
#
# LDAP Alias support
#
ldapvirtual_server_host = ldap://127.0.0.1:389
ldapvirtual_search_base = dc=bonnin,dc=com
ldapvirtual_query_filter = (&(!(kolabDeleteFlag=*))(|(alias=%s)(mail=%s)))
ldapvirtual_result_attribute = mail
ldapvirtual_result_filter = %s
ldapvirtual_search_timeout = 15
ldapvirtual_scope = sub
ldapvirtual_bind = yes
ldapvirtual_bind_dn = cn=nobody,cn=internal,dc=bonnin,dc=com
ldapvirtual_bind_pw = ER2eUVXYpREfWde0Vc+HvmKp/mAcwwG2n83IPDvD
ldapvirtual_version = 3
#
# LDAP Recipient map
#
#
# LDAP Distributionlist support
#
ldapdistlist_server_host = ldap://127.0.0.1:389
ldapdistlist_search_base = dc=bonnin,dc=com
ldapdistlist_domain = $mydestination
ldapdistlist_query_filter =
(&(objectClass=kolabGroupOfNames)(!(kolabDeleteFlag=*))(mail=%s))
ldapdistlist_special_result_attribute = member
ldapdistlist_exclude_internal = yes
ldapdistlist_result_attribute = mail
ldapdistlist_result_filter = %s
ldapdistlist_search_timeout = 15
ldapdistlist_scope = sub
ldapdistlist_bind = yes
ldapdistlist_bind_dn = cn=nobody,cn=internal,dc=bonnin,dc=com
ldapdistlist_bind_pw = ER2eUVXYpREfWde0Vc+HvmKp/mAcwwG2n83IPDvD
ldapdistlist_version = 3
#
# LDAP Transport for multilocation support
#
ldaptransport_server_host = ldap://127.0.0.1:389
ldaptransport_search_base = dc=bonnin,dc=com
ldaptransport_query_filter =
(&(mail=%s)(objectClass=kolabInetOrgPerson)(!(kolabHomeServer=$myhostname)))
ldaptransport_result_attribute = kolabHomeServer
ldaptransport_result_filter = smtp:[%s]
ldaptransport_search_timeout = 15
ldaptransport_scope = sub
ldaptransport_bind = yes
ldaptransport_bind_dn = cn=nobody,cn=internal,dc=bonnin,dc=com
ldaptransport_bind_pw = ER2eUVXYpREfWde0Vc+HvmKp/mAcwwG2n83IPDvD
ldaptransport_version = 3
#
# Amavis virus scan
#
content_filter=smtp-amavis:[127.0.0.1]:10024
--
Si pones Fe en la mentira, la mentira sera tu Fe.
More information about the users
mailing list