IPv6 Implementation [BAB IV] – SMTP Postfix

Posted on November 28, 2007. Filed under: FreeBSD, IPv6, Mail |

 
Postfix [SMTP] over Dual Stack IPv6/IPv4 Platform
=====================================
 
 
Has been running for more than years.
This sample of simple configuration for main.cf file on running Postfix as SMTP server over dual stack IPv4/IPv6 platform.
 
POP has been running stand alone under inetd without any change.
Configuration has been tested and finely running till this time.
Anyway thanks to ‘Rekan-Rekan Team IPv6 indo.net tahun 2006’ for this good job.
It gave more colors on IPv6 RoadMap in Indonesia
 
Wassalam,
a. rahman isnaini r.sutan
2404:170:ee02::10


# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.

queue_directory = /var/spool/postfix

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.

daemon_directory = /usr/local/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
# particular, don’t specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
mail_owner = postfix

# INTERNET HOST AND DOMAIN NAMES
myhostname = mail.ip-ng.6mail.com
mydomain = ip-ng.6mail.com

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
myorigin = $myhostname

# RECEIVING MAIL
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
inet_protocols = ipv6, ipv4
smtp_bind_address6 = 2404:170:ee02::10

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
# The local_recipient_maps parameter specifies optional lookup tables
# with all names or addresses of users that are local with respect
# to $mydestination, $inet_interfaces or $proxy_interfaces.
smtpd_sender_restrictions = check_sender_access hash:/usr/local/etc/postfix/sender_access, reject_non_fqdn_sender,

reject_unknown_sender_domain

# The unknown_local_recipient_reject_code specifies the SMTP server
# response code when a recipient domain matches $mydestination or
# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
# and the recipient address or address local-part is not found.
unknown_local_recipient_reject_code = 450

# TRUST AND RELAY CONTROL
# The mynetworks parameter specifies the list of “trusted” SMTP
# clients that have more privileges than “strangers”.
mynetworks = /usr/local/etc/postfix/mynetworks

# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions description in
# postconf(5) for detailed information.
relay_domains = /usr/local/etc/postfix/relay_domains

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
alias_maps = hash:/usr/local/etc/postfix/aliases

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user’s home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# “Maildir/” for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.
header_checks = regexp:/usr/local/etc/postfix/header_checks

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.

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

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.

sendmail_path = /usr/local/sbin/sendmail

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.

newaliases_path = /usr/local/bin/newaliases

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.

mailq_path = /usr/local/bin/mailq

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.

setgid_group = maildrop

# html_directory: The location of the Postfix HTML documentation.

html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.

manpage_directory = /usr/local/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.

sample_directory = /usr/local/etc/postfix

# readme_directory: The location of the Postfix README files.

readme_directory = no

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

4 Responses to “IPv6 Implementation [BAB IV] – SMTP Postfix”

RSS Feed for tukang-tukang oprek Comments RSS Feed

da, ane kalo mau nyumbang tulisan dimane nih ?

dari pengalaman dan percobaan sendiri FreeBSD dan OpenBSD (sorry linux, no offense lho..)

proxy ane sekarang wuzz… wuzz…

Dimana ajah Bro…
Email ente pakai yang mana jadinya ?
Biar ane add sebagai penulis… di sini.

Wassalam,
a. rahman isnaini r.sutan

pake email yang speed aja bro

hehehhe… biar ingat selalu padamu (hayah :P)

Done Bro..🙂
Try it.

Wassalam,
a. rahman isnaini r.sutan


Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: