HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Can't send or recieve mail either.. (http://www.howtoforge.com/forums/showthread.php?t=1316)

Geoinline 18th November 2005 18:58

Can't send or recieve mail either..
 
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 19:06

What's in your mail log (under /var/log)?

Geoinline 19th November 2005 03:53

my log
 
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 09: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 12:00

Quote:

Originally Posted by Geoinline
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 15:43

more info.
 
Quote:

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?

Quote:

falko: You don't have /etc/postfix/main.cf???
I do infact have /etc/postfix/main.cf
Quote:

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 16:52

Quote:

Originally Posted by Geoinline
Is the certificate needed for e-mail? How would I redo my certificate?

It's described in the Ubuntu tutorial:
Code:

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


Quote:

Originally Posted by Geoinline
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.

Quote:

Originally Posted by Geoinline
I did http not https when I installed.. does that make a difforence here?

No, that doesn't matter.

Geoinline 19th November 2005 21:00

more info..
 
Quote:

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:.

Quote:

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 02:15

Quote:

Originally Posted by Geoinline
what IP should I use?:confused:

The IP address that the command
Code:

ifconfig
shows for eth0 (or whatever interface you use, might also be eth1, etc.).

Quote:

Originally Posted by Geoinline
Could it be gmail filtering out my e-mails?

Possible, but I don't think so.

Quote:

What should my DNS records look like?
Which DNS records?

Geoinline 20th November 2005 16:42

more info
 
Quote:

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):(


All times are GMT +2. The time now is 15:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.