View Full Version : Can't send or recieve mail either..
Geoinline
18th November 2005, 19:58
My ports are open correctly and I can log into webmail. Webmail says it sends the mail but it never arrives. I can't recieve mail either.
What should my DNS records look for mail to work?
falko
18th November 2005, 20:06
What's in your mail log (under /var/log)?
Geoinline
19th November 2005, 04:53
Nov 15 22:49:03 server1 postfix/sendmail[6909]: fatal: open /etc/postfix/main.cf: No such file or directory
Nov 15 22:49:11 server1 postfix/master[7156]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 22:50:28 server1 postfix/master[7156]: terminating on signal 15
Nov 15 22:51:24 server1 postfix/master[7759]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 22:56:23 server1 postfix/master[6045]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 22:56:24 server1 postfix/pickup[6048]: 2901C65004C: uid=0 from=<root>
Nov 15 22:56:24 server1 postfix/cleanup[6051]: 2901C65004C: message-id=<20051116035622.2901C65004C@server1.domain.com>
Nov 15 22:56:24 server1 postfix/qmgr[6049]: 2901C65004C: from=<root@domain.com>, size=1152, nrcpt=1 (queue active)
Nov 15 22:56:25 server1 postfix/local[6129]: 2901C65004C: to=<admin@domain.com>, orig_to=<root>, relay=local, delay=3, status=sent (delivered to command: procmail -a "$EXTENSION")
Nov 15 22:56:25 server1 postfix/qmgr[6049]: 2901C65004C: removed
Nov 15 23:03:01 server1 postfix/master[6043]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 23:08:50 server1 postfix/master[6043]: terminating on signal 15
Nov 15 23:08:50 server1 postfix/master[6257]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 23:11:03 server1 postfix/smtpd[6275]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt
Nov 15 23:11:03 server1 postfix/smtpd[6275]: warning: TLS library problem: 6275:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/ssl/smtpd.crt','r'):
Nov 15 23:11:03 server1 postfix/smtpd[6275]: warning: TLS library problem: 6275:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
Nov 15 23:11:03 server1 postfix/smtpd[6275]: warning: TLS library problem: 6275:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:760:
Nov 15 23:11:03 server1 postfix/smtpd[6275]: cannot load RSA certificate and key data
Nov 15 23:11:03 server1 postfix/smtpd[6275]: connect from localhost.localdomain[127.0.0.1]
Nov 15 23:11:21 server1 postfix/smtpd[6275]: disconnect from localhost.localdomain[127.0.0.1]
Nov 15 23:12:21 server1 authdaemond.plain: modules="authpam", daemons=5
Nov 15 23:12:39 server1 postfix/master[6257]: terminating on signal 15
Nov 15 23:12:39 server1 postfix/master[6768]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 23:44:11 server1 postfix/master[6768]: terminating on signal 15
Nov 15 23:44:11 server1 postfix/master[361]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 23:44:19 server1 postfix/master[361]: terminating on signal 15
Nov 15 23:44:19 server1 postfix/master[531]: daemon started -- version 2.2.4, configuration /etc/postfix
Nov 15 23:45:16 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Nov 15 23:45:16 server1 postfix/smtpd[706]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt
Nov 15 23:45:16 server1 postfix/smtpd[706]: warning: TLS library problem: 706:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/ssl/smtpd.crt','r'):
Nov 15 23:45:16 server1 postfix/smtpd[706]: warning: TLS library problem: 706:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
Nov 15 23:45:16 server1 postfix/smtpd[706]: warning: TLS library problem: 706:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:760:
Nov 15 23:45:16 server1 postfix/smtpd[706]: cannot load RSA certificate and key data
Nov 15 23:45:16 server1 postfix/smtpd[706]: connect from localhost.localdomain[127.0.0.1]
Nov 15 23:45:16 server1 postfix/smtpd[706]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Nov 15 23:45:16 server1 postfix/smtpd[706]: disconnect from localhost.localdomain[127.0.0.1]
mphayesuk
19th November 2005, 10:40
I might be wrong but from the looks of the log file you need to re-create your certificates again.
falko
19th November 2005, 13:00
Nov 15 22:49:03 server1 postfix/sendmail[6909]: fatal: open /etc/postfix/main.cf: No such file or directory
:eek: You don't have /etc/postfix/main.cf???
Did you follow any of the "Perfect Setup" tutorials?
Geoinline
19th November 2005, 16:43
mphayesuk: I might be wrong but from the looks of the log file you need to re-create your certificates again
Is the certificate needed for e-mail? How would I redo my certificate?
falko: You don't have /etc/postfix/main.cf???
I do infact have /etc/postfix/main.cf
falko: Did you follow any of the "Perfect Setup" tutorials?
I followed the Ubuntu 5.10 Perfect Setup tutorial.
I did http not https when I installed.. does that make a difforence here?
falko
19th November 2005, 17:52
Is the certificate needed for e-mail? How would I redo my certificate?
It's described in the Ubuntu tutorial:
mkdir /etc/postfix/ssl
cd /etc/postfix/ssl/
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr
openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
openssl rsa -in smtpd.key -out smtpd.key.unencrypted
mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
I followed the Ubuntu 5.10 Perfect Setup tutorial.
Did you follow it to the letter? The best way is to open PuTTY on your windows machine and simply copy and paste the commands from the tutorial so that you cannot make typos etc. You only have to replace the IP addresses and hostnames in the tutorial with your own information.
I did http not https when I installed.. does that make a difforence here?No, that doesn't matter.
Geoinline
19th November 2005, 22:00
Did you follow it to the letter? The best way is to open PuTTY on your windows machine and simply copy and paste the commands from the tutorial so that you cannot make typos etc.
Yes I used putty as soon as It was enabled :cool:.
You only have to replace the IP addresses and hostnames in the tutorial with your own information.
It's possible I messed this part up.:o
What should my DNS records look like? what IP should I use?:confused:
Could it be gmail filtering out my e-mails?
falko
20th November 2005, 03:15
what IP should I use?:confused:
The IP address that the command ifconfig shows for eth0 (or whatever interface you use, might also be eth1, etc.).
Could it be gmail filtering out my e-mails?Possible, but I don't think so.
What should my DNS records look like?Which DNS records?
Geoinline
20th November 2005, 17:42
Which DNS records?
The DNS record for the domain I'm trying to send mail from.
This is how I have my DNS record setup (DNS Manager>domain.com>Records)
IP-Adresse Hostname
192.168.15.100 www
192.168.15.100 mail
192.168.15.100 ftp
Mailserver Hostname
192.168.15.100 mail
where 192.168.15.100 is eth0's inet addr in ifconfig.
I can send mail inside my network. Outlook works correctly (inside the network aswell):(
falko
20th November 2005, 19:40
The DNS record for the domain I'm trying to send mail from.
This is how I have my DNS record setup (DNS Manager>domain.com>Records)
IP-Adresse Hostname
192.168.15.100 www
192.168.15.100 mail
192.168.15.100 ftp
Mailserver Hostname
192.168.15.100 mail
where 192.168.15.100 is eth0's inet addr in ifconfig.
I can send mail inside my network. Outlook works correctly (inside the network aswell):(
Ok, this was a misunderstanding. If you want to use your domain also outside your network, you must use your router's public IP address for the DNS records, and forward all needed ports (e.g. 25) from your router to your ISPConfig server.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.