LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2012, 05:06 AM   #1
dimitarsl
LQ Newbie
 
Registered: Jan 2012
Posts: 11

Rep: Reputation: Disabled
Setting up Postfix to recieve and delivery mail locally on Suse


readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
mydomain = exampledomain.com
myorigin = exampledomain.com
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = Postfix5.domain1
delay_warning_time = 1h
message_strip_characters = \0
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination =
defer_transports =
#Mynetworks = hash:/etc/postfix/network_table
mynetworks = 127.0.0.0/8, 192.168.0.1, DMZIP1,DMZIP2,DMZIP3
mynetworks_style = subnet
disable_dns_lookups = no
relayhost = [DMZIP1]
mailbox_command =
mailbox_transport = cyrus
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
#smtpd_sender_restrictions = permit_mynetworks
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination,check_sender_access hash:/etc/postfix/sender_access
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_use_tls = no
smtp_use_tls = no
smtp_enforce_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 26214400
local_recipient_maps =
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes


I can send out e-mail to tester@exampledomain.com
exampledomain.com being my real domain the message goes to Postfix server in DMZIP1 which forwards the message to Postfix5. The message however is not delivered locally as expected but instead Postfix5 tries to forward the message back to DMZIP1 and then goes into a loop until multiple hops are exceeded and the message is dropped.

So the server behind DMZIP1 has no problem routing the message to Postfix5 however he receives to deliver it to tester who has a mailbox there configured via Cyrus.
Postfix5 ip in this case is 192.168.0.1 and also the server is able to send out e-mails from outlook client connected to it. The e-mails go out via DMZIP1 without problem.

I did read a book on the subject but still can`t find the solution why the server is not accepting the message for local delivery.
 
Old 09-20-2012, 06:08 AM   #2
cpasqualini
Member
 
Registered: Dec 2010
Location: Concordia, Entre Ríos, Argentina
Distribution: Debian
Posts: 46

Rep: Reputation: 5
exampledomain pints to your server?

pls add:
mydestination = host.exampledomain.tld,exampledomain.tld, localhost

see http://www.postfix.org/postconf.5.html#mydestination

best regards
 
Old 09-20-2012, 10:36 AM   #3
dimitarsl
LQ Newbie
 
Registered: Jan 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cpasqualini View Post
exampledomain pints to your server?

pls add:
mydestination = host.exampledomain.tld,exampledomain.tld, localhost

see http://www.postfix.org/postconf.5.html#mydestination

best regards
Thanks a lot for the suggestion. Changed the configuration like that but still no luck. The messages are bouncing back and are going out through relayhost. If i make relayhost blank then they stack up in the queue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix can't send or recieve mail! uiuiui172 Linux - Server 13 09-07-2011 11:36 PM
setting up a mail server: unable to recieve mail Valkyrie_of_valhalla Linux - Networking 3 09-15-2006 01:29 PM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
POSTFIX won't recieve external mail deviance99 Linux - Networking 2 10-16-2004 04:57 PM
cant send recieve mail with postfix bentman78 Linux - Software 3 05-05-2004 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration