Professional Documents
Culture Documents
Log in / Sign up
Search
Writers' Community!
Home Page Two Columnists Submit an Article FAQs Contact Author Login
Home » Categories » Internet » Email » Quick Configuration of Postfix Mail server » Printer Friendly
Article Submission
We Need YOUR Articles! Today's Most Popular
We'll Promote Them for FREE! Quick Configuration of Postfix Mail server
Author Login How to Convert Email to SMS
Rate It / View Comments / View All Articles submitted by hedaya
No Reader Ratings Available ? alasooly
New Authors Funny Voice Mail Messages
Submitted Sunday, July 09, 2006
Register Here
Monk-e-mail – An Entertaining
Now Serving 6,294 Authors
hedaya alasooly (90) E-mail Alternative to Guarantee
61,797 Quality Articles hedaya Your Messages Will Be Read
& 6,112 Current Users Online! Log in to become a member of hedaya alasooly's Fan Club!
Microsoft Outlook 2000 Tips –
Featured Authors What’s BCC?
Why I Like Gmail 4. First, it is better to build BIND server, I created the master zone
Electronic Mail Joke Passing localdomain.msft owned by my machine linux1.localdomain.msft and
Etiquette
after that I restarted the BIND service (service named restart).
Is It A Hoax Or Is It Real?
5. I restarted the Postfix service, by (service postfix restart)
Microsoft Exchange Server
2007 Is Right Here
6. Then, I modified the /etc/postfix/main.cf file to have the initial
I Feel Like A Dunce...
configuration
5 Vital Tips To Stop Spam
Email a) The myhostname parameter describes the fully-qualified domain name
Email Branding
of the
mydomain = localdomain.msft
mynetworks_style = subnet
Alternatively, you can specify the mynetworks list by hand, in which case
Postfix ignores the mynetworks_style setting.
http://searchwarp.com/swa77008.htm 24/04/2009
Quick Configuration of Postfix Mail server by hedaya alasooly hedaya Page 2 of 8
inet_interfaces = all
d) The myorigin parameter specifies the domain that appears in mail that
is posted on this machine. The default is to use the local machine name,
$myhostname, which defaults to the name of the machine.
f) Clients to relay mail for: By default, Postfix will relay mail for clients in
authorized networks and in authorized domains.
h) After I make the changes, I must reload postfix (service postfix reload)
7. Example:
When I give
Example
http://searchwarp.com/swa77008.htm 24/04/2009
Quick Configuration of Postfix Mail server by hedaya alasooly hedaya Page 3 of 8
Before the cleanup daemon stores inbound mail into the incoming queue,
it uses
/etc/postfix/ main.cf
canonical_maps = hash:/etc/postfix/canonical
/etc/postfix/canonical
userx sana@linux1.localdomain.msft
usery sameera@linux1.localdomain.msft
main.cf
masquerade_domains = $mydomain
/etc/postfix/main.cf
http://searchwarp.com/swa77008.htm 24/04/2009
Quick Configuration of Postfix Mail server by hedaya alasooly hedaya Page 4 of 8
virtual_maps = hash:/etc/postfix/virtual
/etc/postfix/virtual
userx@yahoo.net sana@linux1.localdomain.msft
12. Relocated users table: Next, the queue manager runs each recipient
name through the relocated database. This table provides information on
how to reach users that no longer have an account, or what to do with
mail for entire domains that no longer exist. When mail is sent to an
address that is listed in this table, the message is bounced with an
informative message. Example
/etc/postfix/main.cf
relocated_maps = hash:/etc/postfix/relocated
/etc/postfix/relocated
user10@linux1.localdomain.msft
/etc/postfix/main.cf
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport
.localdomain.msft local :
http://searchwarp.com/swa77008.htm 24/04/2009
Quick Configuration of Postfix Mail server by hedaya alasooly hedaya Page 5 of 8
b. Forward all mail to an intranet mail gateway, except for mail for the
local machine:
/etc/postfix/main.cf:
relayhost = [10.12.0.31]
c. If your intranet does not use DNS internally, you have to disable DNS
lookups as well:
15. In addition to the above you can configure Postfix to deliver intranet
mail directly instead of sending it via the intranet mail gateway. Specify
routing information for the internal domain in the transport table, and
enable transport table lookups.
/etc/postfix/transport:
.com smtp:
.ps smtp:
/etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport
16. When mail is to be delivered locally, the local delivery agent runs
each local recipient name through the aliases database. The mapping
does not affect addresses in message headers. Local aliases are
typically used to implement distribution lists, or to direct mail for standard
aliases such as postmaster to real people. Alias lookups are enabled by
default. The default configuration depends on the system environment,
but it is typically one of the following: alias_maps = hash:/etc/aliases. The
path to the alias database file is controlled via the alias_database
configuration parameter. The value is system dependent. Usually it is one
of the following:
called .forward in their home directories. The syntax of these files is the
same as
with system aliases, except that the lookup key and colon are not present
When the local delivery agent finds that a message recipient does not
exist, the message is normally bounced to the sender ("user unknown").
Sometimes it is desirable to forward mail for non-existing recipients to
http://searchwarp.com/swa77008.htm 24/04/2009
Quick Configuration of Postfix Mail server by hedaya alasooly hedaya Page 6 of 8
• Header filtering
• Body filtering
• Generic restrictions
(main.cf):
header_checks = regexp:/etc/postfix/header_checks
header_checks = pcre:/etc/postfix/header_checks
(header_checks):
By default, this restriction is applied when the client sends the RCPT TO
command. In order to have the restriction take effect as soon as possible,
specify smtpd_delay_reject = no in the Postfix main.cf configuration file.
Example:
smtpd_client_restrictions = hash:/etc/postfix/access
http://searchwarp.com/swa77008.htm 24/04/2009
Quick Configuration of Postfix Mail server by hedaya alasooly hedaya Page 7 of 8
By default, this restriction is applied when the client sends the RCPT TO
command. In order to have the restriction take effect as soon as possible,
specify smtpd_delay_reject = yes in the Postfix main.cf configuration file.
Example:
smtpd_sender_restrictions=hash:/etc/postfix/access,
reject_unknown_sender
Default:
In addition to the above, the Postfix SMTP server by default accepts mail
for which Postfix is the final destination:
Example:
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination
http://searchwarp.com/swa77008.htm 24/04/2009
Quick Configuration of Postfix Mail server by hedaya alasooly hedaya Page 8 of 8
►Reprint Rights◄
Log in to become a member of hedaya alasooly's Fan Club!
No comments yet.
Submit Comment
If you found this article interesting, you may want to check out:
Why Is Spam Such A Major Problem On The Internet?
New Tips for Marketing via Email
Email Marketing Campaigns: Avoiding Mistakes
What Makes a Good Newsletter Editor
Enter Email Address by a Hotkey
Gibberish Spam Email - Why Do Spammers Send It?
Why E-Mails Bounce Back?
Disclaimer: All information on this site is provided for informational purposes only! By no means is any information
presented herein intended to substitute for the advice provided to you by any health care or other professional or
organization.
Home | Page Two | FAQ's | Contact | Terms of Service | Article Submission Guidelines | Writers' Contests | Privacy | Mission / About
Copyright © 1999-2009 SearchWarp.com, All Rights Reserved - SearchWarp.com is an IcoLogic, Inc. Company
http://searchwarp.com/swa77008.htm 24/04/2009