View previous topic :: View next topic |
Author |
Message |
eyevee99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Apr 2002 Posts: 239
|
Posted: Fri Jan 03, 2003 11:33 pm Post subject: |
|
|
This may seem odd, but I have no telnet command?
EDIT: found and emerged netkit-telnetd.
telnet does not get past the following on the localhost:
Code: |
telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 eyevee99.home.box ESMTP Sendmail 8.12.6/8.12.6; Sat, 04 Dec 2003 09:44:56 +1000
|
Any ideas? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Binestar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Nov 2002 Posts: 58
|
Posted: Sat Jan 04, 2003 3:59 am Post subject: Re: Telnet |
|
|
You have telnet installed, and it shows that sendmail is running. if you read the text I put you would type in the next line (helo yourdomain.com)
As for the SSMTP, I believe that's just another SMTP server and as such conflicts with sendmail. it _should_ be safe to remove it.
I would just do some research to make sure.
Binestar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eyevee99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Apr 2002 Posts: 239
|
Posted: Sat Jan 04, 2003 11:48 am Post subject: |
|
|
ok. I didn't realise there was more than one command to type int he telnet session. I thought that was all output.
;)
so this setup seems to drag the mail down into ~/.maildir.
Presumably I now set up procmail to filter .maildir and pu things where I want them.
Should I be able to then use pine to view this mail? and Evolution?
Should I be able to send mail from the console?
I'm trying to setup the system so I can use X but if it dies I'm still fully functional with pine in the console. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eyevee99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Apr 2002 Posts: 239
|
Posted: Sun Jan 05, 2003 2:15 am Post subject: |
|
|
I have a another query or ten.
My goal is to have mail setup so that I can be using pine at the console or evolution in gnome.
So far, I have a basic setup for sendmail, procmail and fetchmail (per the guide at the start of this thread).
fetchmail gets mail to the ~/.maildir spoolfile
sendmail sends masquerading as my domain blah.com (real domain name withheld)
This sends as myuser@blah.com (my linux logon and my real domain hosted externally). Which is an invalid email address.
Now the questions:
- Can I set up sendmail to send from my real mail address?
- Can I set up pine to send from my real email address?
- Can I set up fetchmail (using procmail?) to file mail according to the email address it is sent to?
- Can I set up pine to read multiple mail accounts (I have several I need to be able to check)
- Can I set up pine to be able to send FROM any of these accounts (similar to the way you can in evolution where you select the from address)?
- Can I set up evolution to use the mailspool or mail directory created by the above operations (ie so if I'm in pine or evolution I'm looking at the same mail data)
- Can I set up evolution to send via sendmail (using multiple addresses when needed)?
I know that's a a lot of questions... Perhaps some pointers in the right direction? I've read though not fully comprehended the procmail, sendmail and fetchmail mans.
Cheers,
Ryan |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Binestar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Nov 2002 Posts: 58
|
Posted: Mon Jan 06, 2003 11:09 pm Post subject: |
|
|
Quote: | - Can I set up sendmail to send from my real mail address? |
You should be able to set the Masqurade_as sendmail.mc entry.
Quote: | - Can I set up pine to send from my real email address? |
Yes, this is actually what I do now. Just enter your address into the Pine information
Quote: | - Can I set up fetchmail (using procmail?) to file mail according to the email address it is sent to? |
I believe what you are saying is you have a catchall account (*@blah.com goes to a single pop account) and you want to file it based on the username in the To: header. It should be possible -- except there is no way of knowing the evelope header if you join mailing lists... You'll want to do a bit more research on advanced fetchmail configurations.
Quote: | - Can I set up pine to read multiple mail accounts (I have several I need to be able to check) |
I honestly don't know. You can always run pine from multiple user accounts...
Quote: | - Can I set up pine to be able to send FROM any of these accounts (similar to the way you can in evolution where you select the from address)? |
You can set the From Header to be an extra header available to edit and do it manually. check out the .pinerc and manpage for pine on adding headers.
Quote: | - Can I set up evolution to use the mailspool or mail directory created by the above operations (ie so if I'm in pine or evolution I'm looking at the same mail data)
- Can I set up evolution to send via sendmail (using multiple addresses when needed)? |
Never used evolution... so I'm not sure.
Quote: | Should I be able to send mail from the console? |
Yes
Hope that helps,
Binestar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eyevee99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Apr 2002 Posts: 239
|
Posted: Sat Jun 07, 2003 3:27 am Post subject: Slight trouble with telnet |
|
|
I can't seem to get sendmail to answer the telnet command.
I've setup sendmail.mc and used m4 to convert it. I've started sendmail and it seems to have started fine. Yet when I telnet (had to emerge netkit-telnetd) the connection is always refused.
Any ideas?
Thanks.
Code: |
divert(-1)
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#
# This is a generic configuration file for Linux.
# It has support for local and SMTP mail only. If you want to
# customize it, copy it to a name appropriate for your environment
# and do the modifications there.
#
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
define(`confDEF_USER_ID',``8:12'')dnl
VERSIONID(`$Id: sendmail-procmail.mc,v 1.1 2003/04/24 21:18:58 avenj Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
define(`SMART_HOST',`mail.myISP.com.au')dnl
MASQUERADE_AS(mydomain.com)dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
FEATURE(`local_procmail')dnl
define(`PROCMAIL_MAILER_FLAGS',`procmail -Y -m $h $g $u')dnl
define(`PROCMAIL_MAILER_ARGS',`procmail -Y -m $h $g $u')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
MAILER(procmail)dnl
MAILER(local)dnl
MAILER(smtp)dnl
Cwlocalhost.localdomain (should this be a real local domain, such as eyevee99.home.box?)
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eyevee99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Apr 2002 Posts: 239
|
Posted: Sat Jun 07, 2003 4:25 am Post subject: |
|
|
I also can't stop sendmail
Code: |
root@eyevee99 ryan # /etc/init.d/sendmail stop
* Stopping sendmail...
sendmail: no process killed [ !! ]
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Braempje l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/10911660283e9e7d2002bca.gif)
Joined: 31 Jan 2003 Posts: 748
|
Posted: Sat Jun 07, 2003 6:52 am Post subject: |
|
|
I'm having a problem on with fetchmail: when I try to bounce a mail in KMail, it tries to declare braempje@localhost as an invalid address, instead of braempje@myisp.
(I have fetchmail delivering messages to maildir, and courier serves them to a lot of clients, and on these machines I have the problem with bouncing.)
Do you guys know a solution? _________________ Dictionary of the Flemish Sign Language - Woordenboek Vlaamse Gebarentaal |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Binestar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Nov 2002 Posts: 58
|
Posted: Thu Jun 26, 2003 10:23 pm Post subject: |
|
|
Wow, there really needs to be something so I can watch a thread for new posts. Maybe and e-mail when new posts occur.
That said:
eyevee99: With that configuration sendmail is only listening on the lo device (IP Address 127.0.0.1)
You need to make sure that sendmail is started.
ps auwx | grep sendmail
If it's not starting you'll need to figure out why. Let me know if you need help with that. (Usually you would want to turn on logging by adding -O LogLevel=30 to the /etc/conf.d/sendmail file.
Braempje: I'm not sure that that is a fetchmail problem. Sounds more like KMail is not properly bouncing the message.
Binestar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gatiba Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/195616112542f1cfdce6f7d.gif)
Joined: 01 Sep 2002 Posts: 434
|
Posted: Sat Jun 28, 2003 10:41 am Post subject: |
|
|
When i :
Code: | telnet localhost smtp |
It says :
Code: | Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
|
So as Eyevee i can't start sendmail correctly. When i try to stop it i receive the same eyevee's message, and in /var/log there aren't loggin file for sendmail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eyevee99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Apr 2002 Posts: 239
|
Posted: Sun Jun 29, 2003 12:37 am Post subject: |
|
|
Check that ssmtp (the cut down version of sendmail) isn't installed.
I found that even though I couldn't install sendmail until I removed ssmtp (which must be install by default?), installing sendmail seemed to reinstall ssmtp. This obviously then broke sendmail. I uninstalled ssmtp again and viola!
:)
Works like a bought one.
Binestar, I think you can set a thread to be monitored and it will then send you emails when there is a new post. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
spinez n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Mar 2003 Posts: 58
|
Posted: Tue Jul 08, 2003 6:49 pm Post subject: |
|
|
Binestar,
I've followed your guide in this thread and recommened to multiple people. Thanks! It's awesome.
I was wondering if you could help me with something though. I want to send an entire copy of an email to a different email address. Is this easy to do with the setup you have listed?
Thanks for any info you can provide. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Binestar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Nov 2002 Posts: 58
|
Posted: Fri Aug 29, 2003 3:17 pm Post subject: |
|
|
Quote: | I was wondering if you could help me with something though. I want to send an entire copy of an email to a different email address. Is this easy to do with the setup you have listed? |
Certainly is possible. With procmail you should be able to pipe the message to mail.
Example rule would be:
:0 c
| mail username@domain.com
I havn't tested that, but it should be something similar. Now that I think about it, there might even be a built in mechanism for this in procmail.
As an aside, I rarely check this thread anymore, If anyone needs help with thier question, please post it here, but also e-mail me directly at chrisf@mhonline.net and I'll answer you much quicker than a month and a half later =)
Binestar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lupo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Oct 2003 Posts: 1
|
Posted: Wed Oct 01, 2003 10:03 am Post subject: sendmail commands |
|
|
I want to access my smtp server via telnet. it is a sendmail server. My isp does not know what the authentification command is.
how do I authentificate myself via telnet? when i type AUTH and the username it gives the error message AUTH mechanism not available |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matbintang n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 12 Aug 2003 Posts: 22 Location: Canada
|
Posted: Mon Oct 06, 2003 12:48 am Post subject: sendmail install script |
|
|
For years now I've been using this script to set up my mail server. I know that it's not the best way to learn things nor is it the best way to do this. However, don't think that the folks at Cork LUG have any bad intentions.
It'll set up sendmail as for use with an isp or as a stand alone mail server. Give it a try.
The URL is http://cork.linux.ie/filemgmt/index.php |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Binestar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Nov 2002 Posts: 58
|
Posted: Tue Oct 07, 2003 3:26 pm Post subject: |
|
|
lupo: You should be able to type: AUTH LOGIN.
It really would be better if you read up on the SMTP protocol and SMTP auth inparticular to learn how to talk directly to an SMTP server. The password needs to be hashed, or even encrypted based on the settings you are using for the server.
Binestar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matbintang n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 12 Aug 2003 Posts: 22 Location: Canada
|
Posted: Sun Oct 26, 2003 9:32 pm Post subject: sendmail problems |
|
|
I'm having a heck of a time getting sendmail to work on my gentoo box.
Here's a list of the problems I having.
1. sendmail is reporting that it can't access the /var/spool/clientmqueue directory here is the permission set right now (out of the box).What should this be?
Quote: | drwxrwx--- 2 smmsp smmsp 72 Oct 19 14:00 clientmqueue |
2. sending the command /etc/init.d/sendmail stop or zap doesn't kill sendmail. How do I fix the init script to do this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neal_cz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Jul 2003 Posts: 12 Location: Neratovice, Czech Republic
|
Posted: Fri Nov 28, 2003 7:26 am Post subject: |
|
|
matbintang,
does sendmail run as user /group smmsp?
I have it like this:
Quote: | drwxrwx--- 2 root mail 4096 2003-11-06 00:00 clientmqueue |
and sendmail runs as user mail (which belongs to group mail):
Quote: | root@server mail # ps aux | grep sendmail
mail 5923 0.0 0.1 4456 872 ? S Sep29 0:01 [sendmail] |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matbintang n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 12 Aug 2003 Posts: 22 Location: Canada
|
Posted: Fri Nov 28, 2003 8:58 pm Post subject: |
|
|
I couldn't figure out what was wrong. I figured I must have messed up something cause I installed postfix first and removed it. I'm wondering if something in the group/passwd files got changed or something like that.
I reinstalled everything this time only installed sendmail and everything worked fine out of the box.
Thanks for the help though. _________________ $>cd /pub
$>more beer |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
aiel7 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Sep 2004 Posts: 1
|
Posted: Tue Sep 20, 2005 7:19 pm Post subject: Re: sendmail conflicting with net-mail/ssmtp |
|
|
eyevee99 wrote: |
<snip>
When I try to emerge sendmail there is a conflict with net-mail/ssmtp
<snip>
[blocks B ] net-mail/ssmtp ("virtual/mta" from pkg net-mail/sendmail-8.12.6-r1
<snip>
Any idea what this means and how to fix it? |
if you run 'emerge unmerge ssmtp' it will remove the package that is causing the confilct and you should be able to emerge sendmail without any problems. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
blommethomas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/828317186461357bb11b42.jpg)
Joined: 16 Nov 2005 Posts: 285 Location: roeselare, belgium
|
Posted: Wed May 17, 2006 8:02 pm Post subject: |
|
|
if you use multiple ISP: should you change the sendmail configuration file to notice the other isp in it to?
and if yes, what lines should I add, just copy the lnies with ISP but with different ISP?
If I'm right: you can configurr your normal mail client afterwards(mine is evolution) and it will automatically go through the sendmail you have _________________ IK BEN GEK |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Narusegawa Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/130377906344a84557c066f.jpg)
Joined: 29 Jun 2004 Posts: 210 Location: Bimringham, UK
|
Posted: Thu May 25, 2006 1:46 pm Post subject: |
|
|
I'd like to use sendmail to send all outgoing mail via my mail server (mail.domain.co.uk), but on port 587 not 25 (my ISP blocks outgoing port 25). Unless the mail is for a local user (i.e. root). I'm not bothered about incoming mails at all.
What file setup would I need for this? Thanks in advance
P.S. Gentoo guys are the best! Always helpful to us newbies _________________ WARNING: It is a violation of federal law to use me in a way inconsistent with my labelling. I am dangerous to humans and domestic animals. Please avoid contact with your eyes and clothing. I should be stored out of the reach of children. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JeroenK n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 May 2006 Posts: 1
|
Posted: Tue May 30, 2006 4:16 pm Post subject: Different domains for different users |
|
|
I have 2 domains, and 2 users. I want a different domain to be appended to each user:
user1@example.com
someoneelse@otherdomain.com
I tried different possibilities, first was to add a:
export EMAIL=user1@example.com
In mutt it shows up ok, but when I send it, it seems like sendmail turns it into:
user1@myhost.example.com
I also noticed this option in sendmail.cf:
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
but in my case this depends on the active user
Any help will be greatly appreciated!
Jeroen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
blommethomas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/828317186461357bb11b42.jpg)
Joined: 16 Nov 2005 Posts: 285 Location: roeselare, belgium
|
Posted: Fri Jan 12, 2007 9:35 pm Post subject: |
|
|
is it jusdt me or is sendmail getting old and un-updated?
If I wan't to send logs to my mailserver(gmail) are there others ways too? _________________ IK BEN GEK |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
]Trix[ Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/57677723943d6b02a43e5d.jpg)
Joined: 27 Feb 2003 Posts: 184
|
Posted: Sat Jan 27, 2007 12:47 pm Post subject: |
|
|
I have setup sendmail and whenever i send mail to my gmail account From domain is resalehost.networksolutions.com how can i change that so that domain will be s0omething else? _________________ Frank Zappa: "A mind is like a parachute. It doesn't work if it's not open." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|