PDA

View Full Version : Mail not being received


nformosa
20th September 2005, 12:13
Hi again,

I'm still testing my ispconfig machine, it is based on Debian and followed the instructions to install the perfect setup.

When testing my mail there is a problem where i can send mail outwards but cannot receive any mail!

Is there something i'm missing?

Thanks
Nick

till
20th September 2005, 12:17
Hi again,

I'm still testing my ispconfig machine, it is based on Debian and followed the instructions to install the perfect setup.

When testing my mail there is a problem where i can send mail outwards but cannot receive any mail!

Is there something i'm missing?

Thanks
Nick

Which pop3 and IMAP server have you installed? The howto includes 2 different solutions taht needed different settings in ispconfig.

falko
20th September 2005, 12:42
Which pop3 and IMAP server have you installed? The howto includes 2 different solutions taht needed different settings in ispconfig.

Yes. Is your POP3/IMAP daemon using Maildir or mbox, and have you made the appropriate setting under Management -> Server -> Settings -> Email?

nformosa
20th September 2005, 12:47
Hi

So i had the option to install either Postfix/Pop3/Imap or Courier-IMAP/Courier-POP3

What i did was installed Postfix with Courier-IMAP/Courier-POP3

But to tell you the honest truth i don;t know which is the best to isntall so if you can enlighten me on this feature i would be much obliged...at least your personal view on which is best etc.

Thansk again
Nick

falko
20th September 2005, 13:11
Hi

So i had the option to install either Postfix/Pop3/Imap or Courier-IMAP/Courier-POP3

What i did was installed Postfix with Courier-IMAP/Courier-POP3

But to tell you the honest truth i don;t know which is the best to isntall so if you can enlighten me on this feature i would be much obliged...at least your personal view on which is best etc.

Thansk again
Nick
I prefer Postfix with Courier-POP3/Courier-IMAP because it uses Maildir which means that ebery mail is stored in a single file instead of one large file for all (like in the mbox format). So you have less problems with corrupted mail boxes, quotas, etc.

This means you have to enable Maildir under Management -> Server -> Settings -> Email.

nformosa
20th September 2005, 14:35
Falco,

So you're saying that i should set up only Postfix/Imap/Pop3 using the SMTP-AUTH and TLS? and using the Maildir format?

So, the best thing is to re-install Debain/ISPconfig and installing the above stating postfix + smtp-auth etc!?

also..as we're in the re-installing area..do you think ubuntu is better than debian? (as i just found out there is an install howto for ubuntu now) ~! Or there is another better (ie more prefered) OS you deem more effective as a Server operating system!

Thanks
Nick

falko
20th September 2005, 14:47
So you're saying that i should set up only Postfix/Imap/Pop3 using the SMTP-AUTH and TLS? and using the Maildir format?

No, it was you who said that you had installed Postfix and Courier: :D

So i had the option to install either Postfix/Pop3/Imap or Courier-IMAP/Courier-POP3

What i did was installed Postfix with Courier-IMAP/Courier-POP3

So, the best thing is to re-install Debain/ISPconfig and installing the above stating postfix + smtp-auth etc!?

also..as we're in the re-installing area..do you think ubuntu is better than debian? (as i just found out there is an install howto for ubuntu now) ~! Or there is another better (ie more prefered) OS you deem more effective as a Server operating system!

Don't know why you want to re-install. :confused: Postfix and Courier are installed, so everything is fine. :)

nformosa
20th September 2005, 14:52
I apologise...read the thread in a rush and didn't understand it...sorry :p

So ok...I have installed the correct stuff phew!! hehe!

Still...i have two things:

1. Since the threadis about not receiving Email...what do you think is wrong? (now you know what i have installed .. hehe)

2. I really would like your opinion on the best, suitable (in this case for ISPConfig) Operating System (ie Linux flavour)!!


Thanks very much
Nick

till
20th September 2005, 15:05
1. Since the threadis about not receiving Email...what do you think is wrong? (now you know what i have installed .. hehe)

Falko has posted the answer above: "and have you made the appropriate setting under Management -> Server -> Settings -> Email?"
Have you changed the setting to maildir?

nformosa
20th September 2005, 15:15
Yes i did till,

to say all, before i ticked the Maildir option, i had problems as Outlook kept asking me for the Username and Password!

Once i did tick the maildir, the logging was going good!

But still, i couldn't receive any mail!


Thanks

falko
20th September 2005, 15:16
1. Since the threadis about not receiving Email...what do you think is wrong? (now you know what i have installed .. hehe)


As I've written before:
This means you have to enable Maildir under Management -> Server -> Settings -> Email.

2. I really would like your opinion on the best, suitable (in this case for ISPConfig) Operating System (ie Linux flavour)!!
There is no "best" Linux, all Linuxes mentioned here: http://www.ispconfig.org/ are supported. This is only a matter or what you prefer personally. The distro I like most is Debian. :)

till
20th September 2005, 15:22
Yes i did till,

to say all, before i ticked the Maildir option, i had problems as Outlook kept asking me for the Username and Password!

Once i did tick the maildir, the logging was going good!

But still, i couldn't receive any mail!

Did you get any errors in your mail log (/var/log/mail.log)?

When you send an email, did the email arrive in the mailbox under /var/spool/mail/[USERNAME] or in the Maildir/new/ folder in the home directory of the user?

nformosa
21st September 2005, 14:46
So i restarted installing debian using, the very detailed, howto.

As i told you installed the courier-imap / courier-pop3, but i wanted to make sure, since i'm resinstalling that i'm doing the right thing.

There is a section in the debian sarge howto about Postfix/Pop3/imap; should i first follow this then run the part of the courier imap/op3 or just install postfix then jump to the section Courier-impa / courier-pop3?

Can you ps help

Thanks nick

till
21st September 2005, 15:21
There is a section in the debian sarge howto about Postfix/Pop3/imap; should i first follow this then run the part of the courier imap/op3 or just install postfix then jump to the section Courier-impa / courier-pop3?

Follow the complete postfix/pop3/imap installation and then proceed with the courier setup. The other pop3 / imap will be automatically removed by apt.

falko
21st September 2005, 15:22
Are you sure that the mail is actually delivered to your system and not to another one (because of DNS misconfiguration etc.)? When you send a test mail to your box, can you see appropriate log entries in /var/log/mail.log?

nformosa
21st September 2005, 15:30
thanks guys

Falco, i don't think taht its a dns proble since i've already have another temp mail server which works great! (but has to be replaced)


Thanks once again
Nick

falko
21st September 2005, 16:15
Falco, i don't think taht its a dns proble since i've already have another temp mail server which works great! (but has to be replaced)

Ok, but can you see something in the logs when you send a mail to the system?

nformosa
24th September 2005, 16:27
Hi again...

sorry for taking so long...

so..

1. under Maildir/user nothing could be found

2. under /var/spool/mail/user/new its empty

3. here is a part whre i tailed the incoming mail in mail.log

Sep 24 16:23:49 smarterwerx postfix/smtpd[2760]: connect from zproxy.gmail.com[64.233.162.192]
Sep 24 16:23:50 smarterwerx postfix/smtpd[2760]: 6AFB447C289: client=zproxy.gmail.com[64.233.162.192]
Sep 24 16:23:50 smarterwerx postfix/cleanup[2763]: 6AFB447C289: message-id=<9b3c7fbc05092407236d6ac146@mail.gmail.com>
Sep 24 16:23:50 smarterwerx postfix/qmgr[2308]: 6AFB447C289: from=<nformosa@gmail.com>, size=1335, nrcpt=1 (queue active)
Sep 24 16:24:09 smarterwerx courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Sep 24 16:24:09 smarterwerx courierpop3login: LOGIN, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1]
Sep 24 16:24:09 smarterwerx courierpop3login: LOGOUT, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
Sep 24 16:24:11 smarterwerx courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Sep 24 16:24:11 smarterwerx courierpop3login: LOGIN, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1]
Sep 24 16:24:11 smarterwerx courierpop3login: LOGOUT, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
Sep 24 16:24:19 smarterwerx courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Sep 24 16:24:19 smarterwerx courierpop3login: LOGIN, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1]
Sep 24 16:24:19 smarterwerx courierpop3login: LOGOUT, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
Sep 24 16:24:20 smarterwerx postfix/smtp[2766]: connect to smarterwerx.smarterwerx.com[217.168.163.172]: Connection timed out (port 25)
Sep 24 16:24:21 smarterwerx postfix/smtp[2766]: 6AFB447C289: to=<nicky.formosa_smarterwerx@smarterwerx.smarterwerx. com>, orig_to=<nicky.formosa@smarterwerx.com>, relay=none, delay=31, status=deferred (connect to smarterwerx.smarterwerx.com[217.168.163.172]: Connection timed out)
Sep 24 16:24:21 smarterwerx postfix/smtpd[2760]: disconnect from zproxy.gmail.com[64.233.162.192]
Sep 24 16:24:31 smarterwerx courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Sep 24 16:24:31 smarterwerx courierpop3login: LOGIN, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1]
Sep 24 16:24:31 smarterwerx courierpop3login: LOGOUT, user=nicky.formosa_smarterwerx, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0

falko
26th September 2005, 11:55
Which server is smarterwerx.smarterwerx.com? Is it yours? Why does the connection time out? Isn't Postfix running on that server?

2. under /var/spool/mail/user/new its empty
It's /var/spool/mail/[username], not /var/spool/mail/[username/new.

nformosa
26th September 2005, 14:27
hi falco,

so smarterwerx.smarterwerx.com is the server! though it looks funny! Where can i play with this setting? as i'm pretty sure it shouldn't be that way! it should read only smarterwerx.com!


I checked, as u rightly stated, /var/spool/mail/[username] and it was empty!

Thanks
Nick

falko
26th September 2005, 15:43
smarterwerx.smarterwerx.com is the server! though it looks funny! Where can i play with this setting? as i'm pretty sure it shouldn't be that way! it should read only smarterwerx.com!


Is smarterwerx.smarterwerx.com in /etc/postfix/main.cf? What does hostname -f give back?

nformosa
26th September 2005, 20:01
Hi falco,

So when i typed hostname -f it only returned smarterwerx.com

An this is my main.cf:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = smarterwerx.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = smarterwerx.smarterwerx.com, smarterwerx.com, localhost.com, lo
calhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrtictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
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_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_recieved_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names




thanks for your time and patience falco
nick

nformosa
3rd October 2005, 00:48
Any Ideas guys to how i can solve this problem!

Thanks for your pro advice
Nick