[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

postfix cant receive mail

Posted on 2006-10-30
6
Medium Priority
?
739 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 2000 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

656 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