You are not logged in.
Pages: 1

i'm trying to make a script to registers users for mailserver...
i'm using postfix and courier-imap with pop3 and imap
but i still can't figure aout how to send mail to user like:
mail -s Welcome $user
welcome
.but got problem to send to console "welcome" and "." ;(
plz help 
Offline

mail -s Welcome $user <<-EOF
welcome
.
EOFOffline

mail -s Welcome $user < /path/to/welcome/message?? the above might work.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline

mail -s Welcome $user <<-EOF
welcome
.
EOF
super, it worked 
Offline

try piping it:
(
   echo "bla"
   echo "bla "
   echo "bla"
   echo " "
) | mail -s <subject> <username>Offline
Pages: 1