Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd June 2007, 05:44 PM
Nac88 Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
Question Postfix and Dovecot mailserver

Hi. I did just notice a problem with my mailserver. I'm using Dovecot and Postfix and I can receive mails from hotmail and so on but I can't send to hotmail and so on.. when I type "tail /var/log/maillog" it looks like my server can't connect to hotmail when I trying to send a mail there. so.. I can't mail to any mailservers outside the local area or something like that. but I can mail to other people that is registred on my server..

anyone knows what the problems can be? Would be very greatful to get it to work to 100%


Regards

[Edit]:
I followed a guide that I found on google.
"http://www.howtoforge.com/installing_a_lamp_system_with_fedora_core_6"
Reply With Quote
  #2  
Old 22nd June 2007, 10:15 PM
surferelf Offline
Registered User
 
Join Date: Apr 2005
Posts: 40
Could be a number of things. Are any non-hotmail accounts (that aren't local) able to receive mail from you? Do you have a dynamic IP address? Many mail systems reject mail from SMTP servers with dynamic IPs. You could get a static IP, or you can relay outgoing mail to your ISP's SMTP server. If you pick the latter, you get to learn about all kinds of fun stuff like SASL and TLS!
Reply With Quote
  #3  
Old 22nd June 2007, 11:04 PM
Nac88 Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
No one can that has an non-hotmail can get a mail.. just local users or something like that O.o.. Yes I have dynamic IP adress but my domainholder can handle dynamic IP's and both postfix and dovecot is configed with my domain and not ip. does that matter? SASL and TLS is already in use for my mailserver since it stood in the guide that I had to use things like that.

[edit]: I can get mails from everyone use spray, hotmail, gmail or anything else but I can't just send to anyone outside my local network O.o
Reply With Quote
  #4  
Old 25th June 2007, 05:04 AM
surferelf Offline
Registered User
 
Join Date: Apr 2005
Posts: 40
If you can't send to anyone, it's probably not the dynamic IP thing. Are you getting bounces? If so, the headers on the bounces might help. Also, if you post your main.cf file, we may be able to see if you have any configuration issues.
Reply With Quote
  #5  
Old 28th June 2007, 05:56 PM
Nac88 Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
# SOFT BOUNCE

#soft_bounce = no

#in_flow_delay = 1s

#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

#recipient_delimiter = +

#home_mailbox = Mailbox
#home_mailbox = Maildir/

#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

# local_destination_recipient_limit = 300
# local_destination_concurrency_limit = 5

#mailbox_transport = cyrus

#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =

#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local

#header_checks = regexp:/etc/postfix/header_checks

#fast_flush_domains = $relay_domains

#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

debug_peer_level = 2

#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.3.3/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
inet_interfaces = all
smtpd_tls_auth_only = no
smtpd_use_tls = yes
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_CAfile = /etc/postfix/ssl/smtpd.crt
smtpd_tls_loglevel = 1
smtpd_tls_recived_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
mailbox_command =

Hope this wasn't too long :P don't really know how to copy it so this is it ... really hope you can help me.. I can send mail locally but not to et.c hotmail ._. just getting "Connection Timeout to blablabla"
Also did remove all the boring text, otherwise is would be too long reply x] hope this was right :)

[edit]: Sorry for the slow respond but was on vacation :)
Reply With Quote
  #6  
Old 29th June 2007, 06:12 AM
surferelf Offline
Registered User
 
Join Date: Apr 2005
Posts: 40
Ok. I have a couple of questions about your main.cf file, but if you could post the results of "postconf" it might answer them.

You say:

Quote:
just getting "Connection Timeout to blablabla"
Where are you getting this? What program is timing out? What do your logs say?
Reply With Quote
  #7  
Old 29th June 2007, 04:34 PM
danwaineo's Avatar
danwaineo Offline
Registered User
 
Join Date: Nov 2005
Location: Portland, OR
Posts: 243
Hey, I'm not really an expert here, and I've only used sendmail. Maybe hotmail is reject mail from you. Maybe you need to forward your mail to your internet provider or to your domain server. In sendmail this is called a smart host. In postfix, it looks like you would add this to main.cf:

relayhost = (name or ip address of host)
Reply With Quote
  #8  
Old 29th June 2007, 06:01 PM
surferelf Offline
Registered User
 
Join Date: Apr 2005
Posts: 40
I agree with your recommendation that he should relay through his ISP's server (or get his own static IP), however, I don't think the SMTP request to Hotmail would timeout. It "should" be rejected with a 550 error explaining that they don't accept mail from dynamic IPs.

In fact, the only time I've seen a timeout was when I had a DNS problem. Hence, my inquiry as to whether he can ping Google.
Reply With Quote
  #9  
Old 29th June 2007, 06:20 PM
danwaineo's Avatar
danwaineo Offline
Registered User
 
Join Date: Nov 2005
Location: Portland, OR
Posts: 243
Quote:
Originally Posted by surferelf
I agree with your recommendation that he should relay through his ISP's server (or get his own static IP), however, I don't think the SMTP request to Hotmail would timeout. It "should" be rejected with a 550 error explaining that they don't accept mail from dynamic IPs.

In fact, the only time I've seen a timeout was when I had a DNS problem. Hence, my inquiry as to whether he can ping Google.

Cool, it sounds like you know a lot more about this than I do. I've only set this type of system up once and that was a number of years ago. Maybe it's still worth a shot though. It's only adding one line to test if his ISP doesn't require any identification (other than his ip address).
Reply With Quote
  #10  
Old 29th June 2007, 06:33 PM
surferelf Offline
Registered User
 
Join Date: Apr 2005
Posts: 40
Quote:
Originally Posted by danwaineo
Cool, it sounds like you know a lot more about this than I do.
Just enough to be dangerous.

Quote:
Originally Posted by danwaineo
I've only set this type of system up once and that was a number of years ago. Maybe it's still worth a shot though. It's only adding one line to test if his ISP doesn't require any identification (other than his ip address).
You know, there's another reason why he should do this. I'll bet his ISP is blocking port 25.
Reply With Quote
  #11  
Old 29th June 2007, 06:53 PM
Nac88 Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
Quote:
Originally Posted by surferelf
Just enough to be dangerous.



You know, there's another reason why he should do this. I'll bet his ISP is blocking port 25.
nope, their not blocking port 25.. called them today and asked if I could run an own mail server on port 25 and they said I could do that and also they ain't blocking port 25. =/

but just one little question.. in the guide I followed they said I should be turning off the firewall and I did so, also restarted my server and the firewall was on again and I had to open port 25, 110 and 993 again for INPUT traffic.. should I do the same on OUTPUT? can it be that why my server can't send out?

Last edited by Nac88; 29th June 2007 at 07:12 PM.
Reply With Quote
Reply

Tags
dovecot, mailserver, postfix

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
My postfix mailserver won't receive mail (FC6) guywood13 Servers & Networking 3 9th March 2008 04:24 PM
postfix - dovecot sevennot6 Servers & Networking 2 25th July 2006 08:04 PM
Postfix/dovecot strong Security and Privacy 1 29th June 2005 08:58 AM


Current GMT-time: 13:28 (Sunday, 19-05-2013)

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