Solved

postfix cant receive mail

Posted on 2006-10-30
6
735 Views
Last Modified: 2008-01-09
hello,

I am trying to setup a mail server using postfix. I opted to try it out on Ubuntu. I setup Postfix and everything installed fine. I can telnet into mail server and auth works. can send email but cannot receive any email for the domain. here is my post -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = mail.domain.com, localhost.domain.com, localhost
mydomain = domain.com
myhostname = mail.domain.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom

and when I send an email from an outside account this is what I get in mail.info log
connect from mail01.somedomain.org[xxx.xxx.xxx.xxx]
Oct 30 09:55:36 mail postfix/smtpd[11798]: NOQUEUE: reject: RCPT from mail01.somedomain.org[xxx.xxx.xxx.xxx]: 554 <me@domain.com>: Relay access denied; from=<someone@somedomain.org> to=<me@domain.com> proto=ESMTP helo=<pa-exch.somedomain.org>
Oct 30 09:55:36 mail postfix/smtpd[11798]: disconnect from mail01.somedomain.org[xxx.xxx.xxx.xxx]

The mail server is behind a firewall in the dmz(ipcop) IMAP works fine can telnet into server on port 110. I have searched a lot before I posted here. I have never had this much trouble on Postfix.
Thanks in advance.
0
Comment
Question by:ircpamanager
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Expert Comment

by:CrazyDon
ID: 17853540
mynetworks = 127.0.0.0/8 is telling postfix to only accept email from itself. Change this to reflect your network
0
 
LVL 25

Accepted Solution

by:
Cyclops3590 earned 500 total points
ID: 17950801
change
mydestination = mail.domain.com, localhost.domain.com, localhost
to
mydestination = mail.domain.com, localhost.domain.com, localhost, domain.com
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17950820
btw, in reference to
myorigin = /etc/mailname

what is the contents of /etc/mailname.  its 'domain.com' right?  otherwise system emails come out as root@<your hostname>
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 5

Author Comment

by:ircpamanager
ID: 17965155
sorry for the delay.
/etc/mailname is domain.com
purged install, reinstalled and added domain.com to mydestination. do not know if the sasl was done right this time or your suggestion worked, but it works now.
Thanks for your response.
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17965264
it was adding that to the list of parameters,
before, you were only accepting email destined to the following
@mail.domain.com
@localhost.domain.com
@localhost
not @domain.com like you wanted
0
 
LVL 5

Author Comment

by:ircpamanager
ID: 17979351
thanks
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question