LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Manually Spool into sendmail (http://www.linuxquestions.org/questions/linux-newbie-8/manually-spool-into-sendmail-14043/)

edbravo 02-11-2002 02:55 PM

Manually Spool into sendmail
 
Hi there...
I'm just moving into Linux (and lemme tell you I'm falling for it).
Though I'm still confused about a lot of stuff...

I have 2 basic Questions about Sendmail.

1) Is my understanding that you can use sendmail to "receive mail" (as an MX) and to "send" mail (as a MAILER MX)... The Q is.. the fact that I have sendmail as a daemon on port 25 doesn't mean that it will be acting as the "Outgoing (Mailer) part" right ?
Where can I select what software I use for "outgoing mail" ?

2) I'm used on IISSMTP to have a "pickup" folder where I drop msgs. and they get sent out... How can I do the same with sendmail ? what folder can I spool them to ?

Thanks in advance.
Excuse my ignorance ;)

Ed.

:rolleyes:

acid_kewpie 02-11-2002 03:17 PM

1) well, sendmail will send mail to an external location, as your local sendmail program relays the mail to the smtp server (e.e.g sendmail) at the host address. I guess you know this but it's that you give SMTP your mail, and it then gives it to somewhere else, pushing rather than pulling. there's no real conceptual difference between a local mailbox and a remote server in the way it's working.

2) err.. pass.

finegan 02-11-2002 03:43 PM

2) /var/spool/mqueue I think is what you're asking about... but that differs (rarely) from distro to distro.

Cheers,

Finegan

edbravo 02-11-2002 04:08 PM

Hey guys thanks for the prompt response.

-> finegann

I know the spooler folder is the one you mentioned, but can I just "create a txt file" on that folder and it'll be send out ? If so..what's the format of such file like ?

Thanks in advance.

Ed.

finegan 02-11-2002 05:20 PM

I know you can 'cat filename >> /var/spool/mqueue' into the spool... but it takes specific formatting and I haven't ever dealt with that before. Heck... try looking at an incoming spool from /var/spool/mail/user and see if you can just reverse engineer it?

Why the curiosity? Trying to build a client?

Cheers,

Finegan

edbravo 02-11-2002 07:58 PM

Yeah Kinda...

;)

edbravo 02-15-2002 12:41 PM

Help Needed ASAP
 
Hey guys...
I have sendmail running, and I have several domains...
in the /etc/hosts file I have

1.2.3.4 domaina.com
1.2.3.5 domainb.com

in the /etc/mail/local-host-names

domaina.com
domainb.com

In the /mail/sendmail.cf

O DaemonPortOptions= Address=0.0.0.0,Name=MTA, M=hb

What I need to do is that when I connect to port domaina in port 25 (telnet in) it will "bind" to 1.2.3.4 and if I connect to domainb will bind to 1.2.3.5
That is, so every virtual domain that I manage have the proper headers...

Excuse me if I am too confusing...

Ed.


All times are GMT -5. The time now is 12:45 PM.