Fedora Linux Support Community & Resources Center
  #1  
Old 24th February 2009, 02:09 PM
Hawkeye0203 Offline
Registered User
 
Join Date: Feb 2009
Location: Grand Rapids, MI USA
Posts: 2
Unhappy Postfix as SMTP, Dovecot as POP: not entirely working...

Hello everyone!

I hope someone here can help me.

Here's the situation. I've got a server at home that I run my personal websites on and am transitioning it to my business website server (Fedora 10). I want to be able to run my own email off of it. So far, I can connect to it with an email client (Thunderbird) and download new messages if there are any. I can telnet into it and send an email in this fashion:

Code:
[root@server1 /]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 server1.mydomain.com ESMTP Postfix
ehlo localhost
250-server1.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: test@test.com
250 2.1.0 Ok
rcpt to:myaccount@localhost
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
TEST TEST TEST
.
250 2.0.0 Ok: queued as DA2462654C
quit
221 2.0.0 Bye
Connection closed by foreign host.
but if I change the "rcpt to" address to my domain name ("myaccount@mydomain.com") it looks as if everything is fine, I just never get the message.

Also, when I try to send from my gmail account, I get this:

Code:
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <myaccount@mydomain.com>: Relay access denied (state 14).
So, in short... I can connect just fine and download emails if they're there, but I can not send emails to an account @ my domain name from internally or externally. Oh, and I have the firewall in my router pointed accurately and the firewall in my server turned OFF.

I hope this makes sense and someone can help me. If I need to post any configs, please ask and I'll do them as soon as possible.

Thank you!
Reply With Quote
  #2  
Old 24th February 2009, 10:52 PM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 29
Posts: 473
I'm having the same issue. Here is my postconf -n output:
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $mydomain
mydomain = domain.com
myhostname = mail.domain.com
mynetworks = 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $myhostname
relayhost = $mydomain
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = 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_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
And here is the error:
Code:
Feb 24 15:45:37 aperture-server postfix/smtpd[9854]: connect from ISP CONNECTION[xx.xx.xx.xx]
Feb 24 15:45:38 aperture-server postfix/smtpd[9854]: 3858E3DE508: client=ISP CONNECTION[xx.xx.xx.xx], sasl_method=PLAIN, sasl_username=user
Feb 24 15:45:38 aperture-server postfix/cleanup[9858]: 3858E3DE508: message-id=<49A4788F.1000806@domain.com>
Feb 24 15:45:38 aperture-server postfix/qmgr[9842]: 3858E3DE508: from=<user@domain.com>, size=598, nrcpt=1 (queue active)
Feb 24 15:45:38 aperture-server postfix/smtpd[9854]: disconnect from ISP CONNECTION[xx.xx.xx.xx]
Feb 24 15:45:38 aperture-server postfix/smtpd[9854]: connect from unknown[192.xxx.xxx.xxx]
Feb 24 15:45:38 aperture-server postfix/smtp[9859]: warning: host mail.domain.com[xx.xx.xx.xx]:25 greeted me with my own hostname mail.domain.com
Feb 24 15:45:38 aperture-server postfix/smtp[9859]: warning: host mail.domain.com[xx.xx.xx.xx]:25 replied to HELO/EHLO with my own hostname mail.domain.com
Feb 24 15:45:38 aperture-server postfix/smtp[9859]: 3858E3DE508: to=<me@hotmail.com>, relay=mail.domain.com[xx.xx.xx.xx]:25, delay=0.19, delays=0.13/0.04/0.02/0, dsn=5.4.6, status=bounced (mail for domain.com loops back to myself)
Feb 24 15:45:38 aperture-server postfix/smtpd[9854]: disconnect from unknown[192.xxx.xxx.xxx]
Feb 24 15:45:38 aperture-server postfix/cleanup[9858]: 698BB3DE5B4: message-id=<20090224224538.698BB3DE5B4@mail.domain.com>
Feb 24 15:45:38 aperture-server postfix/bounce[9860]: 3858E3DE508: sender non-delivery notification: 698BB3DE5B4
Feb 24 15:45:38 aperture-server postfix/qmgr[9842]: 698BB3DE5B4: from=<>, size=2450, nrcpt=1 (queue active)
Feb 24 15:45:38 aperture-server postfix/qmgr[9842]: 3858E3DE508: removed
Feb 24 15:45:38 aperture-server postfix/local[9862]: 698BB3DE5B4: to=<user@domain.com>, relay=local, delay=0.06, delays=0.01/0.04/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Feb 24 15:45:38 aperture-server postfix/qmgr[9842]: 698BB3DE5B4: removed
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
  #3  
Old 24th February 2009, 11:05 PM
griffinmt Offline
Registered User
 
Join Date: Oct 2005
Location: Central Michigan
Age: 65
Posts: 190
I gather that your 'domain' is registered in DNS externally and pointing to your firewall.
You will also have to have an external MX record for your domain that points to your firewall.
And your firewall will need to let port 25 in through to your mail server.

Having said that, just about every isp blocks port 25 from passing through their internal network.
So you will have to connect via another port (likely 26) and also provide authentication to do so. Many isps let that happen, but not all.
__________________
Martyn Griffin
Reply With Quote
  #4  
Old 25th February 2009, 12:16 AM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 29
Posts: 473
I should have cleared it up. I do have an MX record created that points to mail.domain.com, and mail.domain.com points to the server. I do have a firewall setup on the server itself, but it does have port 25 open. I work at the ISP so I know that it is not being blocked.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
Reply

Tags
dovecot, pop, postfix, smtp, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
POSTFIX+DOVECOT no SMTP AUTH PashaTurok Servers & Networking 8 12th August 2009 10:29 PM
Postfix SMTP Rewriting twistymcgee Using Fedora 0 31st January 2009 04:06 AM
How to get SMTP Auth working Postfix on Fedora Core 4??? objec Using Fedora 1 1st September 2005 06:55 PM
dovecot/postfix smtp trinimoses Servers & Networking 1 8th July 2005 03:16 PM


Current GMT-time: 11:18 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Biella Travel Photos - Tukrah Travel Photos on Instagram - Sao Jose dos Pinhais Travel Photos