Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Email System For The Home Network - Version 2.1

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
667 posts
  • Page 16 of 27
    • Jump to page:
  • Previous
  • 1
  • …
  • 14
  • 15
  • 16
  • 17
  • 18
  • …
  • 27
  • Next
Author
Message
ufoq
n00b
n00b
Posts: 33
Joined: Thu Mar 25, 2004 4:21 pm

  • Quote

Post by ufoq » Mon Mar 29, 2004 9:51 am

Comment this :
smtpd_client_restrictions = permit_sasl_authenticated, reject
and uncomment this:
#smtpd_recipient_restrictions = permit_sasl_authenticated, permit_auth_destination, permit_mynetworks, check_relay_domains, reject_unauth_destination
in your /etc/postfix/main.cf
Top
pontifikas
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 138
Joined: Sun Aug 17, 2003 7:00 am
Location: Greece

  • Quote

Post by pontifikas » Mon Mar 29, 2004 6:15 pm

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: Select all

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.
Top
ufoq
n00b
n00b
Posts: 33
Joined: Thu Mar 25, 2004 4:21 pm

  • Quote

Post by ufoq » Mon Mar 29, 2004 9:07 pm

Follow my instructions above, if it doesn't help, post some logs, without them we are walking in the dark
Top
dsegel
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Fri Jan 31, 2003 8:41 pm

  • Quote

Post by dsegel » Thu Apr 01, 2004 3:50 pm

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?
Top
Cybergod091281
n00b
n00b
Posts: 10
Joined: Wed May 14, 2003 2:21 pm

  • Quote

Post by Cybergod091281 » Thu Apr 01, 2004 8:58 pm

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: Select all

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
Top
MarkG
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Apr 28, 2002 4:48 pm
Location: Dorset, UK

  • Quote

Post by MarkG » Sun Apr 04, 2004 5:38 pm

Try this to fix the "sql_select option missing" problem

Code: Select all

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
Top
Cybergod091281
n00b
n00b
Posts: 10
Joined: Wed May 14, 2003 2:21 pm

  • Quote

Post by Cybergod091281 » Mon Apr 05, 2004 3:36 pm

thx for the tip, now it works perfectly :)
i tried to add my user to the cron group, but nothing happened.

greetz cg
Top
Obfuscated
n00b
n00b
User avatar
Posts: 6
Joined: Thu Apr 08, 2004 11:28 pm

  • Quote

Post by Obfuscated » Fri Apr 09, 2004 7:21 pm

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: Select all

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: Select all

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.
Top
Obfuscated
n00b
n00b
User avatar
Posts: 6
Joined: Thu Apr 08, 2004 11:28 pm

  • Quote

Post by Obfuscated » Fri Apr 09, 2004 11:00 pm

Doh, looked around some more and found the solution:

Code: Select all

FEATURES=-sandbox emerge procmail
So the next question is, what exactly is sandbox and why does it need to be disabled?
Top
Negated Void
l33t
l33t
Posts: 670
Joined: Wed Dec 25, 2002 10:02 pm

  • Quote

Post by Negated Void » Tue Apr 13, 2004 1:38 am

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: Select all

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
Top
Dr_Stein
Guru
Guru
Posts: 303
Joined: Fri Mar 21, 2003 3:12 am
Location: Mountain View, CA
Contact:
Contact Dr_Stein
Website

So, what was the solution for this?

  • Quote

Post by Dr_Stein » Thu Apr 15, 2004 11:27 pm

"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.
Top
numerodix
l33t
l33t
User avatar
Posts: 743
Joined: Thu Jul 18, 2002 3:39 pm
Location: nl.eu

  • Quote

Post by numerodix » Sun Apr 18, 2004 12:58 pm

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: Select all

*/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: Select all

*/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
Top
dsd
Developer
Developer
Posts: 2162
Joined: Sun Mar 30, 2003 10:54 am
Location: nr London

Re: Email System For The Home Network - Version 2.1

  • Quote

Post by dsd » Thu Apr 22, 2004 9:51 am

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: Select all

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
Top
Kyrra
n00b
n00b
Posts: 53
Joined: Wed Jan 15, 2003 7:55 am
Location: Kansas
Contact:
Contact Kyrra
Website

Re: Email System For The Home Network - Version 2.1

  • Quote

Post by Kyrra » Fri Apr 23, 2004 3:12 am

dsd wrote:finally, to avoid messages like this in syslog:

Code: Select all

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
Top
dixi
n00b
n00b
Posts: 1
Joined: Mon Apr 19, 2004 9:56 pm

Need a working /etc/postfix/master.cf

  • Quote

Post by dixi » Sat Apr 24, 2004 6:02 am

running

Code: Select all

[sp@yafa - ~ ]sudo netstat -lp | grep :smtp
gets me:

Code: Select all

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
Top
veggie2u
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Wed Oct 16, 2002 10:10 pm
Location: Minneapolis/MN USA
Contact:
Contact veggie2u
Website

Can't Send email from other computer.

  • Quote

Post by veggie2u » Mon Apr 26, 2004 3:00 am

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: Select all

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: Select all

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
Top
bruor
Apprentice
Apprentice
Posts: 239
Joined: Tue Jul 08, 2003 8:12 am

  • Quote

Post by bruor » Fri Apr 30, 2004 5:56 am

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: Select all

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
Top
MooktaKiNG
Guru
Guru
User avatar
Posts: 326
Joined: Mon Nov 11, 2002 2:30 pm
Location: London, UK
Contact:
Contact MooktaKiNG
Website

  • Quote

Post by MooktaKiNG » Fri Apr 30, 2004 9:18 am

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: Select all

smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject
And replace it with this line:

Code: Select all

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 :D
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
Top
bruor
Apprentice
Apprentice
Posts: 239
Joined: Tue Jul 08, 2003 8:12 am

  • Quote

Post by bruor » Fri Apr 30, 2004 12:48 pm

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.
Top
krunk
Guru
Guru
Posts: 316
Joined: Sun Jul 27, 2003 6:46 pm

  • Quote

Post by krunk » Sun May 02, 2004 8:42 pm

I skimmed over the ~400 posts, but forgive me if this has been answered before, but:

My .fetchmailrc:

Code: Select all

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: Select all

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
Top
bruor
Apprentice
Apprentice
Posts: 239
Joined: Tue Jul 08, 2003 8:12 am

  • Quote

Post by bruor » Mon May 03, 2004 2:04 am

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
Top
krunk
Guru
Guru
Posts: 316
Joined: Sun Jul 27, 2003 6:46 pm

  • Quote

Post by krunk » Mon May 03, 2004 2:29 am

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
Top
krunk
Guru
Guru
Posts: 316
Joined: Sun Jul 27, 2003 6:46 pm

  • Quote

Post by krunk » Mon May 03, 2004 5:10 am

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: Select all

# 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
Top
bruor
Apprentice
Apprentice
Posts: 239
Joined: Tue Jul 08, 2003 8:12 am

  • Quote

Post by bruor » Mon May 03, 2004 1:09 pm

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
Top
krunk
Guru
Guru
Posts: 316
Joined: Sun Jul 27, 2003 6:46 pm

  • Quote

Post by krunk » Mon May 03, 2004 4:38 pm

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
Top
Post Reply

667 posts
  • Page 16 of 27
    • Jump to page:
  • Previous
  • 1
  • …
  • 14
  • 15
  • 16
  • 17
  • 18
  • …
  • 27
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy