Solved

postfix cant receive mail

Posted on 2006-10-30
6
731 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
  • 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now