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
Great info! Thanks!
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
> 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
I was able to get and use WinSCP. That turned out to be very useful.
Thanks
>> --
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