Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sendmail m4 file

349 views
Skip to first unread message

chad

unread,
Aug 19, 2008, 3:54:10 PM8/19/08
to
I replaced my sendmail.mc file with another one. I just need to run m4
to generate the sendmail.cf file. How do I do this??????

J.O. Aho

unread,
Aug 19, 2008, 4:00:52 PM8/19/08
to
chad wrote:
> I replaced my sendmail.mc file with another one. I just need to run m4
> to generate the sendmail.cf file. How do I do this??????

In the head of your sendmail.mc it should say something like:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

I suggest you make a backup of your original sendmail.cf, before you execute
that, don't forget to restart sendmail after that.


--

//Aho

chad

unread,
Aug 19, 2008, 5:02:57 PM8/19/08
to

Great info! Thanks!

chad

unread,
Aug 19, 2008, 5:26:15 PM8/19/08
to

I ran the above command, but I got this when restarting sendmail?????

>pbbx:/etc/init.d $ sendmail restart


Starting sendmail: 554 5.0.0 /etc/mail/sendmail.cf: line 6: invalid
argument to V line: "ERSIONID(Id: sendma"
root@pbx:/etc/init.d $ Starting sendmail: 554 5.0.0 /etc/mail/
sendmail.cf: line 6: invalid argument to V line: "ERSIONID(Id: sendma"
-bash: Starting: command not found
root@pbx:/etc/init.d $ 554 5.0.0 /etc/mail/sendmail.cf: line 8:
MAILER(local)MAILER(smtp): A= argument required
-bash: syntax error near unexpected token `('
root@pbx:/etc/init.d $ 451 4.0.0 /etc/mail/sendmail.cf: line 8:
fileclass: cannot open
'ATURE(always_add_domain)MASQUERADE_AS(pbx)FEATURE(allmasquerade)FEATURE(masquerade_envelope)':
No such file or directory
-bash: 451: command not found
root@pbx:/etc/init.d $ 554 5.0.0 No local mailer defined
-bash: 554: command not found
root@pbx:/etc/init.d $ 554 5.0.0 QueueDirectory (Q) option must be set
-bash: syntax error near unexpected token `('
root@pbx:/etc/init.d
$ [FAILED]
-bash: [FAILED]: command not found


J.O. Aho

unread,
Aug 20, 2008, 12:17:50 PM8/20/08
to
chad wrote:

> I ran the above command, but I got this when restarting sendmail?????
>
>> pbbx:/etc/init.d $ sendmail restart
>
>
> Starting sendmail: 554 5.0.0 /etc/mail/sendmail.cf: line 6: invalid
> argument to V line: "ERSIONID(Id: sendma"
> root@pbx:/etc/init.d $ Starting sendmail: 554 5.0.0 /etc/mail/
> sendmail.cf: line 6: invalid argument to V line: "ERSIONID(Id: sendma"
> -bash: Starting: command not found
> root@pbx:/etc/init.d $ 554 5.0.0 /etc/mail/sendmail.cf: line 8:
> MAILER(local)MAILER(smtp): A= argument required
> -bash: syntax error near unexpected token `('
> root@pbx:/etc/init.d $ 451 4.0.0 /etc/mail/sendmail.cf: line 8:
> fileclass: cannot open
> 'ATURE(always_add_domain)MASQUERADE_AS(pbx)FEATURE(allmasquerade)FEATURE(masquerade_envelope)':
> No such file or directory
> -bash: 451: command not found
> root@pbx:/etc/init.d $ 554 5.0.0 No local mailer defined
> -bash: 554: command not found
> root@pbx:/etc/init.d $ 554 5.0.0 QueueDirectory (Q) option must be set
> -bash: syntax error near unexpected token `('
> root@pbx:/etc/init.d
> $ [FAILED]
> -bash: [FAILED]: command not found

This seems to be caused by your notepad cut and paste thing, as you see one of
the rows starts with 'ATURE' and the function name is "FEATURE", I highly
recommend you copy the file with scp

example: scp /etc/mail/sendmail.mc user@remotehost:.

Change the "user" to the username you have on the other server, and replace
the "remotehost" part to the ip-number or working domain name.

If this isn't possible, then use winscp, copy the /etc/mail/sendmail.mc to
your microsoft machine, then copy it from your microsoft machine to the other
Linux server.

--

//Aho

chad

unread,
Aug 21, 2008, 1:49:46 PM8/21/08
to
On Aug 20, 12:17 pm, "J.O. Aho" <u...@example.net> wrote:
> chad wrote:
> > I ran the above command, but I got this when restarting sendmail?????
>
> >> pbbx:/etc/init.d $ sendmail restart
>
> > Starting sendmail: 554 5.0.0 /etc/mail/sendmail.cf: line 6: invalid
> > argument to V line: "ERSIONID(Id: sendma"
> > root@pbx:/etc/init.d $ Starting sendmail: 554 5.0.0 /etc/mail/
> > sendmail.cf: line 6: invalid argument to V line: "ERSIONID(Id: sendma"
> > -bash: Starting: command not found
> > root@pbx:/etc/init.d $ 554 5.0.0 /etc/mail/sendmail.cf: line 8:
> > MAILER(local)MAILER(smtp): A= argument required
> > -bash: syntax error near unexpected token `('
> > root@pbx:/etc/init.d $ 451 4.0.0 /etc/mail/sendmail.cf: line 8:
> > fileclass: cannot open
> > 'ATURE(always_add_domain)MASQUERADE_AS(pbx)FEATURE(allmasquerade)FEATURE(ma­squerade_envelope)':

> > No such file or directory
> > -bash: 451: command not found
> > root@pbx:/etc/init.d $ 554 5.0.0 No local mailer defined
> > -bash: 554: command not found
> > root@pbx:/etc/init.d $ 554 5.0.0 QueueDirectory (Q) option must be set
> > -bash: syntax error near unexpected token `('
> > root@pbx:/etc/init.d
> > $                                                            [FAILED]
> > -bash: [FAILED]: command not found
>
> This seems to be caused by your notepad cut and paste thing, as you see one of
> the rows starts with 'ATURE' and the function name is "FEATURE", I highly
> recommend you copy the file with scp
>
> example: scp /etc/mail/sendmail.mc user@remotehost:.
>
> Change the "user" to the username you have on the other server, and replace
> the "remotehost" part to the ip-number or working domain name.
>
> If this isn't possible, then use winscp, copy the /etc/mail/sendmail.mc to
> your microsoft machine, then copy it from your microsoft machine to the other
> Linux server.
>
> --
>
>    //Aho- Hide quoted text -
>
> - Show quoted text -

I was able to get and use WinSCP. That turned out to be very useful.

Thanks

J.O. Aho

unread,
Aug 21, 2008, 3:56:04 PM8/21/08
to
chad wrote:

>> --

OT: Your news client is broken, it should remove everything after a line with
"-- ".

>> //Aho- Hide quoted text -
>> - Show quoted text -

You are only supposed to quote what you are replying to, no point in poluting
a post with unrelevant data.

> I was able to get and use WinSCP. That turned out to be very useful.

Sure it works, but I prefer to use scp, as I don't need to land the file
somewhere in between.


--

//Aho

0 new messages