View previous topic :: View next topic |
Author |
Message |
ufoq n00b
Joined: 25 Mar 2004 Posts: 33
|
Posted: Mon Mar 29, 2004 9:51 am Post subject: |
|
|
Comment this :
Quote: |
smtpd_client_restrictions = permit_sasl_authenticated, reject
|
and uncomment this:
Quote: |
#smtpd_recipient_restrictions = permit_sasl_authenticated, permit_auth_destination, permit_mynetworks, check_relay_domains, reject_unauth_destination |
in your /etc/postfix/main.cf |
|
Back to top |
|
|
pontifikas Tux's lil' helper
Joined: 17 Aug 2003 Posts: 138 Location: Greece
|
Posted: Mon Mar 29, 2004 6:15 pm Post subject: |
|
|
Forgive me for probably presenting an already discussed issue but 16 pages is way too much.
I've followed the instructions exactly.Everything seems to run smoothly(no errors at start up).But I cannot get mail
I'm behind a router(Actualy DSL modem:Alcatel Speedtouch Home->Pro).
I want actually to make my system a mailserver so as to be able to sent and receive mail from my machine.
-My local IP is set to 10.0.0.1
-default gateway(the router's ip) is 10.0.0.138
-My connections IP is updated via Dyndns
-Dyndns domain: something.dyndns.org
-My hostname: something(same as dyndns).
I have also added in /etc/hosts
[Code]
127.0.0.1 localhost
10.0.0.1 something something.10.0.0.138 something.dyndns.org
[*Code]
-In /etc/postfix/main.cf I have uncommented the line
myhostname = something.dyndns.org
-I've redirected port:25 of the router to my port:25
-I have set up kmail according to the instructions.
-I send a mail to username@something.dyndns.org and it cannot be delivered.
What am I doing wrong?
Another question:What about internal mailing?Supposing the above is solved, is the system able to send messages to root?
I Thank you in advance _________________ Crimes against humanity??Dunno!!Maybe that chimp-face guy over there can help you.
Ehrr...don't push him hard though.He's kinda slow. |
|
Back to top |
|
|
ufoq n00b
Joined: 25 Mar 2004 Posts: 33
|
Posted: Mon Mar 29, 2004 9:07 pm Post subject: |
|
|
Follow my instructions above, if it doesn't help, post some logs, without them we are walking in the dark |
|
Back to top |
|
|
dsegel Tux's lil' helper
Joined: 31 Jan 2003 Posts: 127
|
Posted: Thu Apr 01, 2004 3:50 pm Post subject: |
|
|
Does your router have a logging function? Check that first to make sure that mail is actually getting delivered to port 25 on the router. If it is, then start looking at the postfix logs.
Also, what's this line in your hosts file for:
10.0.0.1 something something.10.0.0.138 something.dyndns.org
Is that really what it looks like (and I'm not talking about the 'something')?
Let me be more clear: are you defining 'something.dyndns.org' in your hosts file and pointing it towards your internal network? |
|
Back to top |
|
|
Cybergod091281 n00b
Joined: 14 May 2003 Posts: 10
|
Posted: Thu Apr 01, 2004 8:58 pm Post subject: |
|
|
first thx for this great howto, i ran today through it and everything works. i've got only one small problem: when acting as normaluser@server how do I get permissions to crontab -e to activate the mentioned crontab entry for fetchmail?
EDIT: solved (crontab -u user -e)
but now I've got another problem:
Code: | Kerberos postfix/smtpd[23652]: sql_select option missing
Kerberos postfix/smtpd[23652]: auxpropfunc error no mechanism available
Kerberos postfix/smtpd[23652]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Kerberos postfix/smtpd[23658]: sql_select option missing
Kerberos postfix/smtpd[23658]: auxpropfunc error no mechanism available
Kerberos postfix/smtpd[23658]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql |
I've installed mysql for my LAMP, and I searched for some solution to this error but didn't found anything helping me. hope u guys can help me.
greetz cg |
|
Back to top |
|
|
MarkG Tux's lil' helper
Joined: 28 Apr 2002 Posts: 90 Location: Dorset, UK
|
Posted: Sun Apr 04, 2004 5:38 pm Post subject: |
|
|
Try this to fix the "sql_select option missing" problem
Code: |
USE="-mysql" emerge cyrus-sasl
|
It should get rid of the warning but I'd like a better fix
Its also mentioned hear
You should be able to edit a users crontab without specifying the -u option is you are logged in as the user. I slipped up on this one because I hadn't added my user to the cron group.
MarkG |
|
Back to top |
|
|
Cybergod091281 n00b
Joined: 14 May 2003 Posts: 10
|
Posted: Mon Apr 05, 2004 3:36 pm Post subject: |
|
|
thx for the tip, now it works perfectly
i tried to add my user to the cron group, but nothing happened.
greetz cg |
|
Back to top |
|
|
Obfuscated n00b
Joined: 08 Apr 2004 Posts: 6
|
Posted: Fri Apr 09, 2004 7:21 pm Post subject: |
|
|
Hi everyone. First of all I'm a total Getoo noob so it may be something obvious. I'm trying to install this but I'm getting some errors when I try to emerge procmail. Here's what I get after it unpacks:
Code: |
patching file src/authenticate.c
/bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
"-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
"/lib /usr/lib /usr/local/lib" \
/dev/null "make" o \
"gcc" "-O3 -march=pentium4 -fomit-frame-pointer -pipe -fno-inline-functions " "-s " "procmail lockfile formail mailstat" \
"procmail formail lockfile" \
"procmailrc procmailsc procmailex" "src man" \
"/usr/bin" \
"strip"
gcc seems to work fine, using that as the C-compiler
...scanning for 13 libraries...
...scanning for 12 libraries...
...scanning for 11 libraries...
...scanning for 10 libraries...
...scanning for 9 libraries...
...scanning for 8 libraries...
...scanning for 7 libraries...
...scanning for 6 libraries...
...scanning for 5 libraries...
...scanning for 4 libraries...
Added LDFLAGS= -lm -lnsl -ldl -lc
cd src; make ../autoconf.h
echo Housekeeping file >config.check
make[1]: Entering directory `/var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src'
/bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
"grep -F" "make" o "/tmp . " \
"/usr/bin" ../autoconf.h
Using the following directories for the LOCKINGTESTs:
/tmp .
Initiating fcntl()/kernel-locking-support tests
Proceeding with kernel-locking-support tests in the background
Testing for const
./autoconf: line 743: 19650 Segmentation fault grepfor const '#define NO_const'
Testing for volatile
Testing for prototypes
Testing for enum
Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
./autoconf: line 1011: 19725 Segmentation fault grepfor struct '#define WMACROS_NON_POSIX'
./autoconf: line 1011: 19726 Segmentation fault grepfor union '#define WMACROS_NON_POSIX'
Testing for various struct passwd members
./autoconf: line 1024: 19733 Segmentation fault grepfor pw_passwd '#define NOpw_passwd'
./autoconf: line 1025: 19734 Segmentation fault grepfor pw_class '#define NOpw_class'
./autoconf: line 1026: 19735 Segmentation fault grepfor pw_gecos '#define NOpw_gecos'
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
ftruncate, strtod, strncasecmp, strerror, strlcat,
memset, bzero, and _exit
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
./autoconf: line 1081: 19758 Segmentation fault grepfor $func "#define NO$func"
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
./autoconf: line 1081: 19764 Segmentation fault grepfor $func "#define NO$func"
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
./autoconf: line 1081: 19770 Segmentation fault grepfor $func "#define NO$func"
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
./autoconf: line 1090: 19774 Segmentation fault grepfor opendir "
#define NOopendir /* the readdir library does not seem to be available
this will slightly affect the way a filenumber is
selected in MH-folders by procmail */
"
./autoconf: line 1092: 19775 Segmentation fault grepfor setrgid '#define NOsetrgid'
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
Sandbox error : the SANDBOX_READ environmental variable should be defined.
ACCESS DENIED open_rd: /var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src/grepfor
./grepfor: ./grepfor: Permission denied
./autoconf: line 1101: 19778 Segmentation fault grepfor uname "#define NOuname /* <sys/utsname.h> defines it, the libraries don't */"
./autoconf: line 1102: 19779 Segmentation fault grepfor endpwent '#define endpwent()'
./autoconf: line 1103: 19780 Segmentation fault grepfor endgrent '#define endgrent()'
./autoconf: line 1112: 19781 Segmentation fault grepfor gethostbyname '#define NO_COMSAT'
./autoconf: line 1112: 19782 Segmentation fault grepfor getprotobyname '#define UDP_protocolno 17'
./autoconf: line 1112: 19783 Segmentation fault grepfor endhostent '#define endhostent()'
./autoconf: line 1112: 19784 Segmentation fault grepfor endservent '#define endservent()'
./autoconf: line 1112: 19785 Segmentation fault grepfor endprotoent '#define endprotoent()'
./autoconf: line 1114: 19786 Segmentation fault grepfor strstr '#define SLOWstrstr'
./autoconf: line 1114: 19787 Segmentation fault grepfor clock '#define SLOWstrstr'
./autoconf: line 1179: 19788 Segmentation fault grepfor memmove '#define NOmemmove'
Determining the maximum number of 16 byte arguments execv() takes
Whoeaaa! This actually can't happen.
You have a look and see if you detect anything uncanny:
*******************************************************
_autotst.o(.text+0x5d4): In function `main':
: undefined reference to `setrgid'
_autotst.o(.text+0x681): In function `main':
: undefined reference to `setrgid'
collect2: ld returned 1 exit status
make[2]: *** [_autotst] Error 1
*******************************************************
I suggest you take a look at the definition of LDFLAGS*
in the Makefile before you try make again.
make[1]: *** [../autoconf.h] Error 1
make[1]: Leaving directory `/var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src'
make: *** [autoconf.h] Error 2
!!! ERROR: net-mail/procmail-3.22-r6 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)
|
Here's my emerge settings:
Code: | Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo)=================================================================
System uname: 2.4.25-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.seren.com/gentoo ftp://gentoo.agsn.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
|
If anyone has some suggestions, I'd appreciate it. |
|
Back to top |
|
|
Obfuscated n00b
Joined: 08 Apr 2004 Posts: 6
|
Posted: Fri Apr 09, 2004 11:00 pm Post subject: |
|
|
Doh, looked around some more and found the solution:
Code: |
FEATURES=-sandbox emerge procmail
|
So the next question is, what exactly is sandbox and why does it need to be disabled? |
|
Back to top |
|
|
Negated Void l33t
Joined: 25 Dec 2002 Posts: 672
|
Posted: Tue Apr 13, 2004 1:38 am Post subject: |
|
|
Set it up as mentioned.
I can send mail fine, but i cannot recieve mail.
My address i hopt to recieve at is murph@murph.strobe.org
This is the returned mail i get when sending there...
Code: |
The original message was received at Mon, 12 Apr 2004 21:34:42 -0400 (EDT)
from roc-66-66-187-237.rochester.rr.com [66.66.187.237]
----- The following addresses had permanent fatal errors -----
<murph@murph.strobe.org>
(reason: 554 <ms-smtp-01.nyroc.rr.com[24.24.2.55]>: Client host rejected: Access denied)
----- Transcript of session follows -----
... while talking to murph.strobe.org.:
>>>>>> DATA
<<< 554 <ms-smtp-01.nyroc.rr.com[24.24.2.55]>: Client host rejected: Access denied
554 5.0.0 Service unavailable
<<< 554 Error: no valid recipients
Reporting-MTA: dns; ms-smtp-01.nyroc.rr.com
Received-From-MTA: DNS; roc-66-66-187-237.rochester.rr.com
Arrival-Date: Mon, 12 Apr 2004 21:34:42 -0400 (EDT)
Final-Recipient: RFC822; murph@murph.strobe.org
Action: failed
Status: 5.0.0
Remote-MTA: DNS; murph.strobe.org
Diagnostic-Code: SMTP; 554 <ms-smtp-01.nyroc.rr.com[24.24.2.55]>: Client host rejected: Access denied
Last-Attempt-Date: Mon, 12 Apr 2004 21:34:44 -0400 (EDT)
Received: from flashmail.com (roc-66-66-187-237.rochester.rr.com [66.66.187.237])
by ms-smtp-01.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id i3D1Yfdd024402
for <murph@murph.strobe.org>; Mon, 12 Apr 2004 21:34:42 -0400 (EDT)
Message-ID: <407B43B4.3060402@flashmail.com>
Date: Mon, 12 Apr 2004 20:34:44 -0500
From: Matt <CrazyKid@flashmail.com>
User-Agent: Mozilla Thunderbird 0.5+ (X11/20040215)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: murph@murph.strobe.org
Subject: Re: You are a nut
References: <36169.192.168.0.9.1081819896.squirrel@murph.strobe.org>
In-Reply-To: <36169.192.168.0.9.1081819896.squirrel@murph.strobe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: Symantec AntiVirus Scan Engine
|
|
|
Back to top |
|
|
Dr_Stein Guru
Joined: 21 Mar 2003 Posts: 303 Location: Mountain View, CA
|
Posted: Thu Apr 15, 2004 11:27 pm Post subject: So, what was the solution for this? |
|
|
"For clients, both KMail and Thunderbird don't work. I haven't tried others. KMail doesn't generate any errors other than something like "failed to send some messages" in the status bar. Thunderbird gives 'Could not establish an connection because certificate presented is invalid or corrupted. Error Code: -8182' when trying to send. "
Mozilla 1.7b (Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040413) gives that -8182 error - so does the Released Mozilla 1.6 for Windows.
If I turn off TLS, everything works great. But I'd like to be able to use TLS.
How to solve this? Hm..
SOLVED: I paid very close attention to the errors that whizzed by. Also, I removed the CA, and the *.pem certs and re-created it...very...carefully. Adding defaults for all of the sections seems to have made it a bit easier to deal with, too. Bottom line is that it works.
Last edited by Dr_Stein on Sun Apr 18, 2004 5:09 pm; edited 1 time in total |
|
Back to top |
|
|
numerodix l33t
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Sun Apr 18, 2004 12:58 pm Post subject: |
|
|
beowulf, I noticed this a long time ago but I forgot to post it. In section 10 for spamassassin, you mention this for spam training:
Code: | */30 * * * * sa-learn --dir --spam /home/user/.maildir/.spam > /dev/null 2>&1
*/30 * * * * sa-learn --dir --ham /home/user/.maildir/ > /dev/null 2>&1 |
I believe that it should actually be:
Code: | */30 * * * * sa-learn --dir --spam /home/user/.maildir/.spam/cur > /dev/null 2>&1
*/30 * * * * sa-learn --dir --ham /home/user/.maildir/cur > /dev/null 2>&1 |
otherwise sa-learn can't find the messages. This of course assumes that they are marked read, otherwise you could substitute "cur" for "new". _________________ undvd - ripping dvds should be as simple as unzip |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Thu Apr 22, 2004 9:51 am Post subject: Re: Email System For The Home Network - Version 2.1 |
|
|
thanks for the helpful guide
a few comments, i haven't read much of the thread so sorry if they have been mentioned already:
typo in section 5.1, you mention to edit "/etc/courier-imap/authdaemondrc" i dont think that D should be there.
secondly, i had to change MAXPERIP in /etc/courier-imap/imapd to stop mozilla thunderbird saying "server has disconnected, there may be a network problem" now and then (quite irritating). I changed it from 4 to 10 and the problem has gone.
finally, to avoid messages like this in syslog:
Code: | Failed to create cache file: maildirwatch
Error: Input/output error
Check for proper operation and configuration
of the File Access Monitor daemon (famd). |
i had to rc-update famd default and then start it. i haven't looked into what FAM actually does yet. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
Kyrra n00b
Joined: 15 Jan 2003 Posts: 53 Location: Kansas
|
Posted: Fri Apr 23, 2004 3:12 am Post subject: Re: Email System For The Home Network - Version 2.1 |
|
|
dsd wrote: | finally, to avoid messages like this in syslog:
Code: | Failed to create cache file: maildirwatch
Error: Input/output error
Check for proper operation and configuration
of the File Access Monitor daemon (famd). |
i had to rc-update famd default and then start it. i haven't looked into what FAM actually does yet. |
I think this came with a newer build of courier-imapd.
http://www.courier-mta.org/FAQ.html#fam
I'm guessing the newest ebuilds decided to start building fam in with Courier-Imap? _________________ It's not what it is, it's something else.
-Kyrra |
|
Back to top |
|
|
dixi n00b
Joined: 19 Apr 2004 Posts: 1
|
Posted: Sat Apr 24, 2004 6:02 am Post subject: Need a working /etc/postfix/master.cf |
|
|
running
Code: | [sp@yafa - ~ ]sudo netstat -lp | grep :smtp |
gets me:
Code: | tcp 0 0 *:smtp *:* LISTEN 1403/master |
From what I've gleaned in the forums it might be because I have a bad master.cf
Would somebody be able to post a working one based on beowolfs HOWTO?
Thanks in advance |
|
Back to top |
|
|
veggie2u Apprentice
Joined: 16 Oct 2002 Posts: 212 Location: Minneapolis/MN USA
|
Posted: Mon Apr 26, 2004 3:00 am Post subject: Can't Send email from other computer. |
|
|
I have half the functionality. I can connect to IMAP folders, using SSL, but I can't sent. When I use Mutt on zeus (my mail server) I can send an email to anywhere, but when I use Outlook on a laptop on my network, I can't send an email. I get this from outlook.
Code: |
The connection to the server has failed. Account: 'cyberward.net', Server: 'zeus.cyberward.net', Protocol: SMTP, Port: 465, Secure(SSL): Yes, Socket Error: 10061, Error Number: 0x800CCC0E
|
Then this is what my email server says.
Code: |
Apr 25 21:30:51 zeus imapd-ssl: Connection, ip=[10.0.0.103]
Apr 25 21:30:51 zeus imapd-ssl: LOGIN, user=veggie2u, ip=[10.0.0.103], protocol=IMAP
Apr 25 21:30:51 zeus imapd-ssl: LOGOUT, user=veggie2u, ip=[10.0.0.103], headers=0, body=0
Apr 25 21:30:51 zeus imapd-ssl: Connection, ip=[10.0.0.103]
Apr 25 21:30:51 zeus imapd-ssl: LOGIN, user=veggie2u, ip=[10.0.0.103], protocol=IMAP
Apr 25 21:30:51 zeus imapd-ssl: Unexpected SSL connection shutdown.
Apr 25 21:30:51 zeus imapd-ssl: DISCONNECTED, user=veggie2u, ip=[10.0.0.103], headers=0, body=0
|
What am I not doing that is doing this?
veggei2u |
|
Back to top |
|
|
bruor Apprentice
Joined: 08 Jul 2003 Posts: 239
|
Posted: Fri Apr 30, 2004 5:56 am Post subject: |
|
|
beowulf: wanted to thank you again for this guide, i didnt get my issues resolved previosuly but i followed setup again from scratch with the redirect you put up. heres whats going on.
as i understand it i am using ssl to login to my mail server on the lan. my isp blocks ports so i have a but of a work around. contrary to the last time, receiving is working great, it was the fix that you posted that got me up and running the whole \ thing. (its really late and im rambling) anyway ok so i use ssl to connect to the server here with imap and it has popped down all teh mail and all looks good.
if i am sending out. my email client auths using ssl to my server here, and then my email server does what? connect with ssl outbound?
im using outlook. if i set up the email account to send using ssl with the server i just set up as teh outbound, the sending times out. if i take away ssl i get this in an email in my inbox
Code: | Your message did not reach some or all of the intended recipients.
Subject: test
Sent: 4/30/2004 1:46 AM
The following recipient(s) could not be reached:
'bruor@cogeco.ca' on 4/30/2004 1:46 AM
554 <unknown[192.168.0.6]>: Client host rejected: Access denied
|
192.168.0.6 is the IP of the machine i am using outlook on. i have tried using relayhost = xxxxx but that doesnt seem to do anything for me at all, i have also tried killing teh smtpd_sasl* lines in main.cf as well as setting the domainname and hostname for it statically, although i dont think those have anything to do with it.
if you need my config files please post a quick grep line that i can use to strip out commented code adn ill reply a lot faster than i would without it thanks once again for your help |
|
Back to top |
|
|
MooktaKiNG Guru
Joined: 11 Nov 2002 Posts: 326 Location: London, UK
|
Posted: Fri Apr 30, 2004 9:18 am Post subject: |
|
|
I have now reinstalled my server, and did everything that was said up there.
There is one problem though. The how to does not say how to make your email server recieve email, without being an open relay.
I had to remove the following line:
Code: | smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject |
And replace it with this line:
Code: | smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destin
ation |
beowulf: I think you should add that to the how to. This has been mensioned before in this thread, except its 15+ pages big _________________ http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router |
|
Back to top |
|
|
bruor Apprentice
Joined: 08 Jul 2003 Posts: 239
|
Posted: Fri Apr 30, 2004 12:48 pm Post subject: |
|
|
oh, i think i forgot to mention that when i am connecting to send through this system i have to have the UN:PW in the outbound fields selected or it will time out as well. |
|
Back to top |
|
|
krunk Guru
Joined: 27 Jul 2003 Posts: 316
|
Posted: Sun May 02, 2004 8:42 pm Post subject: |
|
|
I skimmed over the ~400 posts, but forgive me if this has been answered before, but:
My .fetchmailrc:
Code: |
et postmaster "localName"
poll mail.myschool.edu with proto IMAP user "user_name" there with password "user_pass" is localName here options warnings 3600
poll pop.my_dept.edu with proto POP3 auth password user "user_name" there with password "user_pass" is localName here options warnings 3600
poll pop.forum.account with proto POP3 auth password user "user_name" there with password "user_pass" is localName here options warnings 3600
poll mail.isp.account with proto POP3 auth password user "user_name" there with password "user_pass" is localName here options warnings 3600 |
I run the fetchmail script provided in howto:
Code: |
fetchmail: couldn't find canonical DNS name of mail.school.edu (mail.school.edu)
fetchmail: Query status=11 (DNS)
fetchmail: couldn't find canonical DNS name of pop.eecs.school.edu (pop.eecs.school.edu)
fetchmail: Query status=11 (DNS)
fetchmail: couldn't find canonical DNS name of pop.forum.com (pop.forum.com)
fetchmail: Query status=11 (DNS)
fetchmail: couldn't find canonical DNS name of mail.bellsouth.net (mail.bellsouth.net)
fetchmail: Query status=11 (DNS)
|
What am I missing, please? _________________ G4 1ghz iBook
PowerMac G3 (B&W) [Powered by Gentoo and Gentoo alone ]
Dual G5
iPod 3rd generation |
|
Back to top |
|
|
bruor Apprentice
Joined: 08 Jul 2003 Posts: 239
|
Posted: Mon May 03, 2004 2:04 am Post subject: |
|
|
looks to me like you are having problems with dns resolution.
can you ping these addresses etc...
can you use your fav linux mail client with these addresses standalone?
if it doesnt work for you try using the ip addresses of these locations rather than hosts names and see if it works for you that way, if it does then you will know its a DNS issue that you need to TS |
|
Back to top |
|
|
krunk Guru
Joined: 27 Jul 2003 Posts: 316
|
Posted: Mon May 03, 2004 2:29 am Post subject: |
|
|
bruor wrote: | looks to me like you are having problems with dns resolution.
can you ping these addresses etc...
can you use your fav linux mail client with these addresses standalone?
if it doesnt work for you try using the ip addresses of these locations rather than hosts names and see if it works for you that way, if it does then you will know its a DNS issue that you need to TS |
I tracked it down, ran an strace and found that some of my perms for /etc/ were off.
Thanks though. _________________ G4 1ghz iBook
PowerMac G3 (B&W) [Powered by Gentoo and Gentoo alone ]
Dual G5
iPod 3rd generation |
|
Back to top |
|
|
krunk Guru
Joined: 27 Jul 2003 Posts: 316
|
Posted: Mon May 03, 2004 5:10 am Post subject: |
|
|
Ok, now I'm to the part with setting up Kmail. When I click on "detect what the server supports" in sending or receving set-up, it errors out:
Unknown error code 0
I've checked to ensure that all the daemons are running, I can download using fetchmail, and have confirmed that my firewall is letting port 25 through from clients. I'm not sure how to troubleshoot from here.
On a side, how do I make an OR rule in .procmailrc? I tried this (as suggested in Timo's HOWTO):
Code: | # Personal/Friends
:0
* ^From:.*addyone
^From:.*addytwo
^From:.*addythree
^From:.*addyfour
^From:.*addyfive
^From:.*addysix
^From:.*addyseven
^From:.*addyeight
^From:.*addynine
.Personal/
|
But this just writes tons of emails to a file named "addytwo".
I've pretty much given up and am installing spamassissin client side. I'm just going to set it as a filter in evolution. But I'd still like to know how to do this since I'd like to set up my own email server over the summer. _________________ G4 1ghz iBook
PowerMac G3 (B&W) [Powered by Gentoo and Gentoo alone ]
Dual G5
iPod 3rd generation |
|
Back to top |
|
|
bruor Apprentice
Joined: 08 Jul 2003 Posts: 239
|
Posted: Mon May 03, 2004 1:09 pm Post subject: |
|
|
im not sure on the or rule for procmail...
just curious did you set up your smtp server to send mail directly? or did you set it up to use your ISP's smtp server for outgoing mail ?
id like to get sending for this whole shebang workign but it isnt looking good..
i can deal with only having incomine email if i can set squirrelmail up to use my ISP's smtp server instead of a local one... at least that way all aspects of this will still *seem to work |
|
Back to top |
|
|
krunk Guru
Joined: 27 Jul 2003 Posts: 316
|
Posted: Mon May 03, 2004 4:38 pm Post subject: |
|
|
bruor wrote: | im not sure on the or rule for procmail...
just curious did you set up your smtp server to send mail directly? or did you set it up to use your ISP's smtp server for outgoing mail ?
id like to get sending for this whole shebang workign but it isnt looking good..
i can deal with only having incomine email if i can set squirrelmail up to use my ISP's smtp server instead of a local one... at least that way all aspects of this will still *seem to work |
Set up to redirect to ISP's smtp server. I figured I should take it in baby steps. _________________ G4 1ghz iBook
PowerMac G3 (B&W) [Powered by Gentoo and Gentoo alone ]
Dual G5
iPod 3rd generation |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|