سلام
اتفاقی این پست رو دیدم
لینک جالبی بود
ممنون
کنجکاو شدم که تست کنم ولی نتیجه نگرفتم ، دوست دارم ایراد کارمو بدونم چون ممکنه یه روزم این درخواست از من بشه که روی دامنه تعداد زیادی ایمیل بسازم
من طبق مراحل پیش رفتم
تو الگوی خودش گفته که فایل csv باید اینجوری باشه:
user1@domain.com,password1,500
ولی وقتی این دستور را اجرا کردم:
cd /usr/local/directadmin/scripts/
./add_email.sh
این پیغام اومد:
Usage:
./add_email.sh <user> <domain> '<cryptedpass>' <plaintext> <quota>
Where the cryptedpass can either be an MD5/DES password
If plaintext is set to 1, then it can be a raw password
Else, set plaintext to 0 to use the provided crypted pass.
quota, in bytes. Use 0 for unlimited
The domain must already exist under a DA account
منظورش چیه؟!
من طبق مراحل بعدی اسکریپت ایجاد کردم و فایل mailboxes.csv را هم ایجاد کردم و طبق الگویی که خودش داده بود پرش کردم:
aa@domain.com,12345678,50
ولی موقع اجرای اسکریپت با این ارور مواجه شدم:
./csv.sh: line 8: syntax error near unexpected token `1024x1024=1048576'
./csv.sh: line 8: `bytes.(1024x1024=1048576)'
رفتم لاین هشت csv.sh یعنی اونجا که نوشته
bytes.(1024x1024=1048576)
را به حالت کامنت در آوردم (اولش # گذاشتم) و دوباره اسکریپت رو اجرا کردم
ولی این ارور را داد:
Usage:
/usr/local/directadmin/scripts/add_email.sh <user> <domain> '<cryptedpass>' <plaintext> <quota>
Where the cryptedpass can either be an MD5/DES password
If plaintext is set to 1, then it can be a raw password
Else, set plaintext to 0 to use the provided crypted pass.
quota, in bytes. Use 0 for unlimited
The domain must already exist under a DA account
./csv.sh: line 28: 12345678: command not found
ایراد کار کجاست؟!