queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = domain.com
mydomain = domain.com
myorigin = domain.com
inet_interfaces = all
mydestination = hash:/etc/postfix/mydomains
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/spool/mail
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.10/samples
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
virtual_alias_maps = hash:/etc/postfix/virtual
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noplaintext
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
mailbox_size_limit = 0
message_size_limit = 2500000000
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = domain.com
mydomain = domain.com
myorigin = domain.com
inet_interfaces = all
mydestination = hash:/etc/postfix/mydomains
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/spool/mail
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.10/samples
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
virtual_alias_maps = hash:/etc/postfix/virtual
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noplaintext
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
mailbox_size_limit = 0
message_size_limit = 2500000000
After configured main.cf create mydomains file write down bleow
vi mydomains
# mydomains - include a a list of aliases for your machine here, formated:
# example.com OK
# After change, run "postmap /etc/postfix/mydomains"
domain.com(domainname) OK
localhost OK
app1.lax.0336 (servername) OK
/usr/sbin/postmap mydomains
After configured mydomains create virtual file
vi virtual
# virtual - LHS is the incoming email address and the RHS is the local recipient
# or alias, like this:
# .com postmaster
#
# After change, run "postmap /etc/postfix/virtual"
# Catchalls go at the bottom.
admin@domain.com admin
postmaster@domain.com
vi virtual
# virtual - LHS is the incoming email address and the RHS is the local recipient
# or alias, like this:
# .com postmaster
#
# After change, run "postmap /etc/postfix/virtual"
# Catchalls go at the bottom.
admin@domain.com admin
postmaster@domain.com
/usr/sbin/postmap virtual
Stop all mail services & start postfix .
start service /etc/init.d/saslauthd start
0 comments:
Post a Comment