 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

15th June 2008, 10:21 AM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
|
I can Send Emails But I cannot Receive Emails
# Postfix Settings main.cf
Quote:
alias_maps hash:/etc/aliases
broken_sasl_auth_clients yes
fallback_transport virtual
home_mailbox Maildir
inet_protocols all
local_recipient_maps $alias_maps $virtual_mailbox_maps unix asswd.byname
local_transport local
mail_spool_directory /var/spool/mail
mailq_path /usr/bin/mailq.postfix
manpage_directory /usr/share/man
mydestination $myhostname, localhost.$mydomain, localhost, $mydomain
myorigin $mydomain
newaliases_path /usr/bin/newaliases.postfix
readme_directory /usr/share/doc/postfix-2.5.1/README_FILES
relay_domains $transport_maps
sample_directory /usr/share/doc/postfix-2.5.1/samples
sendmail_path /usr/sbin/sendmail.postfix
smtp_tls_note_starttls_offer yes
smtp_use_tls yes
smtpd_banner JB SMTP Server
smtpd_recipient_restrictions permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_sasl_auth_enable yes
smtpd_sasl_authenticated_header yes
smtpd_tls_CAfile /etc/pki/CA/private/myca.pem
smtpd_tls_cert_file /etc/pki/CA/private/myca.pem
smtpd_tls_key_file /etc/pki/CA/private/myca.pem
smtpd_tls_loglevel 1
smtpd_tls_received_header yes
smtpd_use_tls yes
soft_bounce yes
unknown_local_recipient_reject_code 450
virtual_gid_maps static:50000
virtual_mailbox_base /home/vmail
virtual_mailbox_domains mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid 10000
virtual_uid_maps static:10000
|
telnet localhost 25
Quote:
220 JB SMTP Server
ehlo localhost
250-ruby.foo.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
|
I use Dovecot for IMAP
if I open the outlook or squirrel mail no email delivered. I also get no bounce back errors. which mean the mail is sitting on the server somewhere.
I have spamassasin & procmail disabled in an attempt to locate the problem.
Last edited by jmbiram; 15th June 2008 at 10:23 AM.
Reason: edited title cannot received emails
|

15th June 2008, 12:23 PM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
|
port 25 forwarded to the box in the router ?
does your ISP block port 25?
Does your ISP require authentication for smtp?
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
|

16th June 2008, 08:49 AM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
|
No ISP does not Block Port 25
No the ISP does not block port 25. I had an HP Proliant running Microsoft Exchange Server SBS 2003 on the network it just died a week ago so I used an old DELL PowerEdge SC430 installed Fedora 9 and setup Postfix, Mysql, Dovecot & Squirrelmail. Router has the port 25 open and I can telnet xxx.foo.com 25 from another site.
I have a suspicious feeling that postfix & dovecot are not relaying the message across to each other. I have limited Dovecot & Postfix knowledge. Postfix is setup as Maildir/ which is directory based right! Dovecot virtual is suppose to put the mail into /home/vmail/%d/%n/Maildir (%d & %n) I guess stands for domain name & username.
I checked and the directories /home/vmail/domain.com/jmbiram/Maildir are there. I sent myself a few test message from icqmail and they briefly appear in the postfix queue /var/spool/postfix then it gets removed and I can´t find where it goes.
Now if I log into squirrelmail I can send an email to an external account like icqmail but if I send it to myself nothing in the inbox.
I can post my configuration if you think it might help.
Last edited by jmbiram; 16th June 2008 at 08:52 AM.
Reason: typo in text message
|

16th June 2008, 09:25 AM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300

|
|
|
The mail should be moved to /home/vmail/%d/%n/Maildir/cur/*
If not you have a postfix problem.
Make sure dovecot is looking for correct Maildir path.
|

16th June 2008, 10:19 AM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
This is the error I get from maillog.
Quote:
Jun 16 19:13:44 ruby postfix/pickup[8091]: ADE353885F6: uid=89 from=<jmbiram@foo.com> orig_id=42ADC3889C1
Jun 16 19:13:44 ruby postfix/cleanup[8325]: ADE353885F6: message-id=<20080616090410.42ADC3889C1@ruby.foo.com>
Jun 16 19:13:44 ruby postfix/qmgr[8092]: ADE353885F6: from=<jmbiram@foo.com>, size=511, nrcpt=1 (queue active)
Jun 16 19:13:44 ruby postfix/pickup[8091]: CAEEB3889C1: uid=89 from=<jmbiram@foo.com> orig_id=7771F38890A
Jun 16 19:13:44 ruby postfix/cleanup[8325]: CAEEB3889C1: message-id=<20080616085738.7771F38890A@ruby.foo.com>
Jun 16 19:13:44 ruby pipe[8331]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: Permission denied
Jun 16 19:13:44 ruby postfix/qmgr[8092]: CAEEB3889C1: from=<jmbiram@foo.com>, size=500, nrcpt=1 (queue active)
Jun 16 19:13:44 ruby pipe[8334]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: Permission denied
|
|

16th June 2008, 10:53 AM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
|
Hi stevea,
How can I check that dovecot is looking for the correct Maildir?
|

16th June 2008, 09:20 PM
|
 |
Registered User
|
|
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105

|
|
|
Port 25 has nothing to do with the issue; it's used for *sending* email only, and that's not a problem. Since the poster's using IMAP, the only port to worry about is 143. And, of course, you shouldn't have to worry about it being blocked at the router because all IMAP requests are originating inside the router.
__________________
Registered Linux user #470359 and permanently recovered BOFH.
Any advice in this post is worth exactly what you paid for it.
|

16th June 2008, 10:36 PM
|
 |
Registered User
|
|
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168

|
|
|
Is your /etc/dovecot.conf set right? SHould have a line like Protocols = IMAP. Is its related ports open in system-config-firewall and your router port forward for it?
|

16th June 2008, 10:57 PM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
|
Dovecot IMAP
Yes I have IMAP listed under the protocols section:
Quote:
# Protocols we want to be serving: imap imaps pop3 pop3s
# If you only want to use dovecot-auth, you can set this to "none".
protocols = imap imaps pop3 pop3s
|
I tried a quick IMAP test such as
Quote:
telnet server 143
* OK Server ready.
LOGIN root password
LOGIN BAD Error in IMAP command received by server.
|
Another thing I added was this to dovecot.conf:
Quote:
|
default_mail_env = maildir:/home/vmail/%d/%n/Maildir
|
I tried to follow these instruction to setup dovecot
http://workaround.org/articles/ispma...he-dovecot-lda
Last edited by jmbiram; 16th June 2008 at 11:18 PM.
Reason: added url to dovecot setup used.
|

16th June 2008, 11:03 PM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
|
Fedora Linux Firewall
I have webmin installled and this is how I have the firewall setup.
Incoming packets (INPUT)
Quote:
Action Condition
Accept If state of connection is ESTABLISHED,RELATED
Accept If protocol is ICMP
Accept If input interface is lo
Accept If protocol is TCP and destination port is 22 and state of connection is NEW
Accept If protocol is TCP and destination port is 80 and state of connection is NEW
Accept If protocol is TCP and destination port is 25 and state of connection is NEW
Accept If protocol is UDP and destination port is 53 and state of connection is NEW
Accept If protocol is TCP and destination port is 53 and state of connection is NEW
Accept If protocol is TCP and destination port is 143 and state of connection is NEW
Accept If protocol is TCP and destination port is 10000 and state of connection is NEW
Reject Always
|
Forwarded packets (FORWARD)
Quote:
Action Condition
Reject Always
|
|

16th June 2008, 11:19 PM
|
 |
Registered User
|
|
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168

|
|
|
Then try www.grc.com's Sheilds Up! to may sure that shows port 143 is open from the outside. Is your router portforward for 143?
protocols = imap imaps pop3 pop3s
Note: you don't need all four flavors of dovecot running, if you only want IMAP, then blank out the rest.
Mine is currently set to:
protocols = imaps
|

16th June 2008, 11:41 PM
|
|
Banned
|
|
Join Date: Oct 2005
Posts: 190

|
|
|
The problem looks to be a permission denied. Has the postfix account access to /home/vmail/%d/%n/Maildir ???
|

17th June 2008, 08:10 AM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
|
Port 143 open!
I have tested it & yes port 143 is open
Quote:
GRC Port Authority Report created on UTC: 2008-06-17 at 07:07:59
Results from scan of ports: 0-1055
4 Ports Open
0 Ports Closed
1052 Ports Stealth
---------------------
1056 Ports Tested
NO PORTS were found to be CLOSED.
Ports found to be OPEN were: 22, 25, 80, 143
Other than what is listed above, all ports are STEALTH.
|
|

17th June 2008, 08:16 AM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
/home/vmai/ <- full [rwx] 0777 for vmail:mail and I checked postfix is a user of group mail.
The denied directory in the mailog might be related:
Quote:
|
Jun 16 19:13:44 ruby pipe[8331]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: Permission denied
|
It is a strange issue ¨usr/lib/dovecot/deliver¨ has also full right to vmail:mail 0777 as well and I still get permission denied.
Last edited by jmbiram; 17th June 2008 at 08:17 AM.
Reason: typo in text message
|

17th June 2008, 08:54 AM
|
 |
Registered User
|
|
Join Date: May 2008
Location: Newcastle, Australia
Posts: 28

|
|
Quote:
|
Originally Posted by Vouters
The problem looks to be a permission denied. Has the postfix account access to /home/vmail/%d/%n/Maildir ???
|
I still cannot receive any emails but I fix the error [ /usr/lib/dovecot/deliver: Permission denied ] by disabling dovecot pipe in master.cf
Quote:
# ================================================== ==================
# Postfix will hand the mail over to Dovecot LDA for local delivery
#dovecot unix - n n - - pipe
# flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d $(recipient)
# ================================================== ==================
|
and hashing
Quote:
##virtual_transport=dovecot
##dovecot_destination_recipient_limit=1
|
in the main.cf
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 05:47 (Monday, 20-05-2013)
|
|
 |
 |
 |
 |
|
|