Solved

postfix cant receive mail

Posted on 2006-10-30
6
730 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
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.

 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mobaxterm not able to change directory 28 108
Changing passwords in Linux Systems 3 41
Why isn't object file created? 6 42
Linux/Apache File Ownership/Permissions 1 53
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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 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…
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…

920 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

16 Experts available now in Live!

Get 1:1 Help Now