[LUGOS] postfix + amavisd-new in localhost problem

Gregor Kališnik gregor at podnapisi.net
Wed Aug 11 22:45:30 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Delal sem po teh dveh howtojih...

http://www.gentoo.org/doc/en/virt-mail-howto.xml --> glavna konfiguracija
http://forums.gentoo.org/viewtopic.php?t=163861&highlight=amavisdnew -- > 
amavisd-new

Main.cf
- ------------------------------------------------------
queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/lib/postfix

mail_owner = postfix

myhostname = mail.bx-team.org

mydomain = bx-team.org

myorigin = $mydomain

inet_interfaces = all

mydestination = 	
	#bx-server,
	$mydomain,
#	localhost.$mydomain,
	$myhostname
	#localhost.localdomain,
#	localhost

local_transport = local
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname

virtual_transport = virtual
virtual_mailbox_domains =

virtual_minimum_uid = 1000
virtual_gid_maps = static:$vmail-gid
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_uid_maps = static:$vmail-uid
virtual_mailbox_base = /
content_filter = smtp:[127.0.0.1]:10024
smtpd_helo_required = no

header_checks = pcre:/etc/postfix/pcre-header.cf
body_checks = pcre:/etc/postfix/pcre-body.cf

mynetworks = 127.0.0.0/8

relay_domains = $mydestination

relayhost = 

alias_maps = mysql:/etc/postfix/mysql-aliases.cf

relocated_maps = mysql:/etc/postfix/mysql-relocated.cf

alias_database = hash:/etc/aliases

recipient_delimiter = +

home_mailbox = .maildir/

mailbox_command = 

smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10

mailbox_size_limit = 0

smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =

smtpd_recipient_restrictions =
	permit_sasl_authenticated,
	permit_mynetworks,
	check_client_access hash:/etc/postfix/pop-before-smtp,	
	reject_non_fqdn_recipient,
	reject_unauth_destination

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

- --------------------------------------------------------------

Master.cf (kar sem dodal)

- -----------------------------------------------------------------

smtp-amavis	unix	-	-	y	-	2	smtp
   -o smtp_data_done_timeout=1200
   -o disable_dns_lookups=yes

127.0.0.1:10025	inet	n	-	y	-	-	smtpd
   -o content_filter=
   -o local_recipient_maps=
   -o relay_recipient_maps=
   -o smtpd_restriction_classes=
   -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

- -------------------------------------------------------------

In ja. V MySQL bazi mam vse pomembno (user tabela, alasi itd.). 

LP
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBGoVwyPfLObk5A8MRAuUyAJ4om2u024htYAqGMRp1Mebf0YHskwCgiL7u
m2U9fjWO/G9SsSLDqJ08ghc=
=Yfe3
-----END PGP SIGNATURE-----



More information about the lugos-list mailing list