Solved

postfix cant receive mail

Posted on 2006-10-30
6
729 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
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 …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

747 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

11 Experts available now in Live!

Get 1:1 Help Now